InoriRus / Kyty

PS4 & PS5 emulator
MIT License
2.49k stars 146 forks source link

Optimizations #41

Closed SysRay closed 2 years ago

SysRay commented 2 years ago

In Filesystem.cpp KernelPread(): Call Seek() only if needed. (improves the loading) GPUMemory.cpp calc_hash(): Use XXH3_64 instead (improves fps a bit)

Label.cpp (Is the name correct?): Just some fyi:

=> vkGetEventStatus returns VK_EVENT_RESET sometimes. It's faster to check the Status first and if Reset -> Wait and try again. I don't know if it may freeze if the second vkGetEventStatus() returns Reset aswell. It may happen if WaitForFence() waits for the next frame, which is impossible, since flip() is not called. Calling WaitForFence() only once and sleep() the next time, should avoid this theoretical freeze.

The changes to Label.cpp speed up the call to WindowDrawBuffer (~600 us faster).