User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: "Lag" with Direct3D 9

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "Lag" with Direct3D 9

    I've noticed a sort of lag in my games when using Direct3D 9.. Every few seconds the game will freeze for about 50 milliseconds, then resume; kinda like lag in an online game. No slowing down, no frame skipping..just lag. Sorry just being specific. It's not the code; I've noticed the lag in all of my games when using Direct3D 9, even a project I just started on. Haven't tried it on other computers yet but I don't think my computer is the issue. I'm using MMF2 standard, build R249, HWA.

    Anyone else noticed this?

    Sorry if this belongs in the HWA section..wasn't sure where to post.


  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    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

  3. #3
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    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.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,062
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    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.

  6. #6
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: "Lag" with Direct3D 9

    Running a loop 8 times won't affect much unless it's every frame. How often is it?
    Working as fast as I can on Fusion 3

  8. #8
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,062
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    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.

  9. #9
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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...?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. "Cannot load joystick2.mfx" when "Compress the runtime" unchecked. Fine when checked.
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th September 2013, 09:44 PM
  2. "Rendertarget ping/pong" and "Pixel shaders" Can TGF2 do this?
    By CloudExSolider in forum The Games Factory 2 - Technical Support
    Replies: 13
    Last Post: 7th April 2013, 08:21 PM
  3. "Bug" For Saving and Loading Frame Positions AND "Timer Glitch"?
    By Zarpo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th March 2012, 12:40 PM
  4. Issues with "Clickteam Movement Controller" and "Runtime" Object
    By jimmyorpheus in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 29th November 2011, 07:10 AM
  5. "Old" Direct3D 8 versus "new" Direct3D 8
    By Taofeld in forum Hardware Accelerated Runtime
    Replies: 7
    Last Post: 19th October 2009, 10:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •