## Super intensive rectangle drawings?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

### Super intensive rectangle drawings?

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.
slime
Solid Snayke
Posts: 2931
Joined: Mon Aug 23, 2010 6:45 am
Contact:

### Re: Super intensive rectangle drawings?

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

### Re: Super intensive rectangle drawings?

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 (8.66 KiB) Viewed 2601 times
slime
Solid Snayke
Posts: 2931
Joined: Mon Aug 23, 2010 6:45 am
Contact:

### Re: Super intensive rectangle drawings?

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)

Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

### Re: Super intensive rectangle drawings?

Version: 1.1.0
Vendor: Microsoft Corporation
Device: GDI Generic
slime
Solid Snayke
Posts: 2931
Joined: Mon Aug 23, 2010 6:45 am
Contact:

### Re: Super intensive rectangle drawings?

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

### Re: Super intensive rectangle drawings?

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

### Re: Super intensive rectangle drawings?

Something clicked, thanks again

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

### Re: Super intensive rectangle drawings?

I see the need for including ANGLE in Löve better now

### Who is online

Users browsing this forum: Google [Bot] and 24 guests