Super intensive rectangle drawings?

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.
Post Reply
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Super intensive rectangle drawings?

Post by Lua Hal »

I'm working on a project, and I noticed that even though I was drawing only three rectangles, I dropped a significant amount of FPS every time. (800x600 rectangle makes me idle at ~40 FPs, adding one half as big drops me down to ~30, etc) but this effect was significantly less pronounced the smaller the base rectangle was, so I assumed it was an error on my part. Just to be sure though, I made a new test where it was just a love.draw loop drawing the rectangles statically and the FPS count, and it persisted. I can only conclude that drawing rectangles is horrendously slow. Is there a better way to draw rectangles? My computer is pretty bad but not god awful.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Super intensive rectangle drawings?

Post by slime »

What kind of framerate does the 0.9.x no-game screen have on your computer? When you draw the rectangles do you have vsync enabled (it's enabled by default)? If so, it might drop down from 60fps to 30fps when it would normally drop from 60fps to 59fps with vsync disabled.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: Super intensive rectangle drawings?

Post by Lua Hal »

No game screen is visibly laggy. I recall the 0.8.0 was perfectly speedy, but I was using Windows 7 (as opposed to 8) then. Disabling and enabling vsync seems to have no effect with three rectangles.
Attachments
screenshot.png
screenshot.png (8.66 KiB) Viewed 5212 times
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Super intensive rectangle drawings?

Post by slime »

What are the return values of love.graphics.getRendererInfo?

e.g. (with the console enabled in conf.lua):

Code: Select all

local name, version, vendor, device = love.graphics.getRendererInfo()
print("Version: "..version.."\nVendor: "..vendor.."\nDevice: "..device)
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: Super intensive rectangle drawings?

Post by Lua Hal »

Version: 1.1.0
Vendor: Microsoft Corporation
Device: GDI Generic
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Super intensive rectangle drawings?

Post by slime »

Your system doesn't have a video driver installed which supports OpenGL, so it's falling back to MIcrosoft's OpenGL 1.1 software renderer. If you download the latest (or any) driver for your computer's GPU it should include OpenGL support.
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: Super intensive rectangle drawings?

Post by Lua Hal »

The driver Intel hosts on their website for my hardware says I have a newer version of the driver than what it will install. The installer was marked for Windows 7. Should I install the older driver?


Final EDIT: They discontinued support for my device. I suppose I'll go back to Windows 7
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Re: Super intensive rectangle drawings?

Post by Lua Hal »

Something clicked, thanks again








hGUITest.png
hGUITest.png (60.24 KiB) Viewed 5145 times
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Super intensive rectangle drawings?

Post by T-Bone »

I see the need for including ANGLE in Löve better now :neko:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 7 guests