Page 1 of 2

Game stuttering on Windows only

Posted: Wed Oct 01, 2014 11:31 am
by DeadlineGer
Hello there!

I'm currently developing a game which is a 2D side scroller. For the last week I've only been developing on OS X but now I figured I'd test whether the game would run fine on windows so I started it just to see it's stuttering there. I'm also only getting around 50 fps with vsync turned off which makes me scratch my head since I'm running on a pretty good system (i5 @ 3.4Ghz, 16gb ram, amd hd7870ghz edition w/ latest drivers, windows 8.1) whereas I'm running the game very smoothly on my laptop (macbook air 2013, 13", i5 @ 1.3Ghz, 4gb ram, Intel HD5000, osx 10.10).

Are there any platform-specific things I would need to know or did I just do big mistakes in development? :o:
I'm attaching the love file just to point out what the problem is. If you're not experiencing this problem it might just be my system but nontheless I'd love to know more about the problem.

Sincerely, DeadlineGer

Re: Game stuttering on Windows only

Posted: Wed Oct 01, 2014 2:23 pm
by Tjakka5
Im on Windows 8.1 right now, and I can say that for me the game is running fine at 310 fps.
Specs:
I5-4210, quad core, 2.4 ghz.
8gb ddr3 ram.
GeForce 840M.

Re: Game stuttering on Windows only

Posted: Wed Oct 01, 2014 2:31 pm
by DeadlineGer
Tjakka5 wrote:Im on Windows 8.1 right now, and I can say that for me the game is running fine at 310 fps.
Specs:
I5-4210, quad core, 2.4 ghz.
8gb ddr3 ram.
GeForce 840M.
Thank you for trying it out!

I'd appreciate if anyone else could try and run it so I can try to determine the problem?
Possibly something something is wrong with my windows machine but I'd be very surprised by that.

Re: Game stuttering on Windows only

Posted: Wed Oct 01, 2014 2:34 pm
by Doctory
dayum boy 9600 pixels is too big for this comp

Re: Game stuttering on Windows only

Posted: Wed Oct 01, 2014 2:46 pm
by DeadlineGer
Doctory wrote:dayum boy 9600 pixels is too big for this comp
Sorry I can't really understand what you are talking about?
If it's the background image you are mentioning: It's "only" 4000px in width but that was only for demonstrational purposes. Later on I'll make these smaller of course.

Re: Game stuttering on Windows only

Posted: Wed Oct 01, 2014 8:42 pm
by Jasoco
Could it be possible that the OS X GPU driver is just better at handling the large image than whatever one is currently in your installation of Windows?

Edit: I just tried it in my Windows and I only notice it slightly stutter once. Not enough to know if it's what you see on your end.

Re: Game stuttering on Windows only

Posted: Thu Oct 02, 2014 1:28 am
by Positive07
DeadlineGer wrote:
Doctory wrote:dayum boy 9600 pixels is too big for this comp
Sorry I can't really understand what you are talking about?
If it's the background image you are mentioning: It's "only" 4000px in width but that was only for demonstrational purposes. Later on I'll make these smaller of course.
Your canvas is 9600px... my computer doesnt support canvases nor shaders tough so I cant help you

Re: Game stuttering on Windows only

Posted: Thu Oct 02, 2014 8:42 am
by DeadlineGer
Yup you were right about the size of the canvas.
I'm rendering the whole map which is tile-based into a canvas every frame and based on the camera movement I move the mapcanvas to the left or right. I tried using a smaller canvas for the map but the results did not change - still lagging on my windows machine and running more than perfectly fine on the laptop.

I can't really imagine it having something to do with the width of the canvas since the problem occurs on a powerful machine but not on a less powerful machine. I updated the drivers for my graphics card which did not help out. Really can't explain this.
Just to test I ran an old game I programmed which didn't use canvases or big images at all and it lagged as well so I think it's got something to do with the setup of the machine but I can't determine what the problem could be..

Re: Game stuttering on Windows only

Posted: Thu Oct 02, 2014 10:13 am
by rmcode
I also can't run the game since the canvas is too big.

Just an idea, but did you check if LÖVE uses the correct video card on your system (and not the integrated one)? A friend of mine had that problem with one of my games.

Just put that into love.load:

Code: Select all

    print("\n---- RENDERER  ---- ");
    local name, version, vendor, device = love.graphics.getRendererInfo()
    print(string.format("Name: %s \nVersion: %s \nVendor: %s \nDevice: %s", name, version, vendor, device));

Re: Game stuttering on Windows only

Posted: Thu Oct 02, 2014 10:39 pm
by megalukes
I have the same problem with stuttering. My game runs perfectly in OSX but in Windows 8.1 it keeps doing that. I made a topic to discuss it and it seems to be a hardware+Windows 8/8.1 issue. Waiting for some solution too.