Framerate of WM_PAINT
-
15-04-2021 - |
Question
Could anybody tell me please how can I get framerate of WM_PAINT message in frames per second? I'm trying to make a software renderer, and framerate is very important for debugging.
La solution
This question was asked previously here. As an additional hint, you can use a dynamically allocated structure to store your FPS-related variables and use SetWindowLongPtr to store a pointer to this structure.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow