문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top