Hey everyone. In my Directx game, I''m getting very inconspicuous "lags" exactly every second of gameplay. When I say "lags," I mean just stops, nothing happens. Again, these lags aren''t very noticeable, but frustrating because I don''t know what''s causing them. Any ideas?
Thanks,
Martin
I don''t know what could cause those lags, but you might try to set higher priority level for application.
Here''s how to do it:
SetPriorityClass(GetCurrentProcess(),REALTIME_PRIORITY_CLASS);
Also surface locking or flipping might cause some lags if you''re using WAIT flag.
Here''s how to do it:
SetPriorityClass(GetCurrentProcess(),REALTIME_PRIORITY_CLASS);
Also surface locking or flipping might cause some lags if you''re using WAIT flag.
Hmm...I tried setting the priority level higher and there was no difference. I also tried taking out DDFLIP_WAIT and replaced it with NULL...it still didn''t work. Thanks anyway mussepigg
Martin
Martin
Those stupid lags are gone! I did the most genius thing left to do, that none of you would have thought of...I rebooted the computer ! Just kidding, I had to reboot the computer since windows blue-screened me, and when I compiled it ran "lag-less." Anyway, thanks for the suggestions.
Martin
Martin
Those stupid lags are gone! I did the most genius thing left to do, that none of you would have thought of...I rebooted the computer ! Just kidding, I had to reboot the computer since windows blue-screened me, and when I compiled it ran "lag-less." Anyway, thanks for the suggestions.
Martin
Martin
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement