Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

lpsoftware

lags?

This topic is 6763 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!