Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

lags?

Started by lpsoftware Apr 16, 2000 at 12:04 PM 7 replies 700+ views
Original Post
lpsoftware
lpsoftware
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
______________Martin EstevaolpSoftware
mussepigg
mussepigg
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.

lpsoftware
lpsoftware
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 EstevaolpSoftware
Julio
Julio
is there possibly something wrong with your timer function?
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Julio
Julio
is there possibly something wrong with your timer function?
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.