Re: "Lag" with Direct3D 9
Does the Luor game lag on your computer?
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Main=17272&Number=1218 79#Post121879
Re: "Lag" with Direct3D 9
Nah, it runs smooth as silk. I tested some of my games on other computers today; there was no lag. This is confusing though as I've got a pretty good computer. Any game I've played on it runs just fine.
I've messed with the app. settings, closed all other programs, and restarted my computer..nothing has worked yet.
Hmm. Now that I think of it, I made a control config based off an example on TDC. All of my recent projects, or atleast the ones I noticed the lag in, use it. I'll do some testing with it.
edit: Seems the lag is caused by the control config. Deleted the code and the game ran fine..Either way there's still no lag on other computers, with or without the config..hmm
Re: "Lag" with Direct3D 9
Can you give us a link to the control config? Maybe there are unneeded events that are constantly looping and causing lag.
Re: "Lag" with Direct3D 9
whether is related i dont know, but i had the joypad extension in a game, and it did that.. i took the extension out, and it ran fine.
it did it even with no code associated to the extension; it just had to be on the frame.
i never really went back and investigated it further tho,
ie in dx8 or standard etc.
Re: "Lag" with Direct3D 9
http://www.create-games.com/article.asp?id=1677
There is one event that starts a loop 8 times to retrieve data from an INI file. That might be the cause. Also, yes it uses the joypad extension.
Re: "Lag" with Direct3D 9
Running a loop 8 times won't affect much unless it's every frame. How often is it?
Re: "Lag" with Direct3D 9
save a version without the joypad.. see what happens. - you must remove it from every frame in the game tho.
it occurred for me even when it was in a different frame.
Re: "Lag" with Direct3D 9
Figured it out. :grin:
The music was causing the lag. Even though it's .ogg, the file is 6.14mb. Is there any way to compress it to a smaller size? I figured with .ogg I wouldn't have to worry about that..
edit: eh, I got the .ogg file down to 2.48mb, and another down to 1.4mb, but the lag was still there. However, I played one that was only 738kb and there was no lag.
So..playing any .ogg larger than 1mb (estimating) causes the lag, regardless of display mode. Why I only noticed it in direct3D 9 earlier? Who knows. My bad on that.
Anyway, any ideas on what to do? Every song I was planning on using for my game is well over 1mb so.
Re: "Lag" with Direct3D 9
That's still really strange. I use ogg files all the time and never have that problem.
Perhaps there is just a problem with oggs in combination with another feature, like "Compress Sounds" in the application properties? It shouldn't happen because oggs shouldn't be affected by this feature since it's already compressed, but perhaps it is anyway...?