Game stuttering on Windows only

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
DeadlineGer
Prole
Posts: 5
Joined: Wed Oct 01, 2014 11:11 am

Game stuttering on Windows only

Post 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
Attachments
Game Forum Version.love
Game .love File
(1.9 MiB) Downloaded 122 times
User avatar
Tjakka5
Party member
Posts: 243
Joined: Thu Dec 26, 2013 12:17 pm

Re: Game stuttering on Windows only

Post 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.
DeadlineGer
Prole
Posts: 5
Joined: Wed Oct 01, 2014 11:11 am

Re: Game stuttering on Windows only

Post 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.
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: Game stuttering on Windows only

Post by Doctory »

dayum boy 9600 pixels is too big for this comp
DeadlineGer
Prole
Posts: 5
Joined: Wed Oct 01, 2014 11:11 am

Re: Game stuttering on Windows only

Post 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.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Game stuttering on Windows only

Post 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.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Game stuttering on Windows only

Post 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
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
DeadlineGer
Prole
Posts: 5
Joined: Wed Oct 01, 2014 11:11 am

Re: Game stuttering on Windows only

Post 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..
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: Game stuttering on Windows only

Post 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));
User avatar
megalukes
Citizen
Posts: 94
Joined: Fri Jun 27, 2014 11:29 pm
Location: Brazil

Re: Game stuttering on Windows only

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest