Page 1 of 1
Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 7:01 am
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.
Re: Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 7:14 am
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.
Re: Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 7:44 am
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.
Re: Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 8:36 am
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)
Re: Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 8:46 am
by Lua Hal
Version: 1.1.0
Vendor: Microsoft Corporation
Device: GDI Generic
Re: Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 8:49 am
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.
Re: Super intensive rectangle drawings?
Posted: Thu Jun 12, 2014 9:10 am
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
Re: Super intensive rectangle drawings?
Posted: Fri Jun 13, 2014 12:16 am
by Lua Hal
Something clicked, thanks again
- hGUITest.png (60.24 KiB) Viewed 5151 times
Re: Super intensive rectangle drawings?
Posted: Fri Jun 13, 2014 9:28 am
by T-Bone
I see the need for including ANGLE in Löve better now