#!/bin/bash

export DXVK_LOG_LEVEL=debug
export WINEDEBUG=-all

wine volund.exe &> /dev/null

grep "Finished in" volund_d3d11.log | awk '{print $5}' > dxvk_times.log
sum=0; while read num; do ((sum += num)); done < dxvk_times.log

echo "Sum of shader compile times: $sum ms"
