diasurgical / devilutionX

Diablo build for modern operating systems
Other
8.01k stars 786 forks source link

Add more profiling and benchmarking documentation #7321

Closed glebm closed 1 month ago

glebm commented 1 month ago

On Linux, you can now run:

tools/build_and_run_benchmark.py --gperf devilutionx -- --diablo --spawn --lang en --demo 0 --timedemo

and get this: image Screenshot from 2024-08-09 16-05-30 Screenshot from 2024-08-09 16-05-53

qndel commented 1 month ago

https://godbolt.org/z/34h3Woscx This doesn't look good 😛 wrong values + Program terminated with signal: SIGFPE https://godbolt.org/z/jMjx78cqd

Nvm was caused by dividing by 0 (srcWidth = 0), still, the behavior for remainingWidth > 0 differs