Hey there,
I modified LÖVE's love.run() function such that it only calls love.draw() when a global variable called "dodraw" is true, which is then immediately set to false. This way, I can make sure that LÖVE only draws things when I want it to, thus saving resources. However, my new laptop has a somewhat loud GPU and I can actually hear it when it draws things. When I scroll in a web browser, for example, I can hear it making noises until I stop scrolling. When my LÖVE application is running, though, it is always making those noises, thus suggesting that it is always drawing something, even when nothing is actually supposed to be drawn.
Why is my GPU drawing things when I am not calling love.draw? There really shouldn't be much to draw, should there?
- ThePC007
GPU makes noises even though it shouldn't be drawing anything
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
GPU makes noises even though it shouldn't be drawing anything
Löve is love, Löve is life.
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: GPU makes noises even though it shouldn't be drawing anything
I'm assuming your browser isn't OpenGL-powered on most websites, though who knows how the compositors and stuff work in them; i'd try to remove love.graphics.present or just setting the window to false in love.conf, and also maybe disabling the graphics and window modules, for starters, to see if that makes your GPU 'sound off' as well.
If not, then try only commenting out the aforementioned lg.present from love.run; you might notice your window contents being either frozen or glitched up on attempts to move it, or other windows above it. If still no noise, then one can assume that the standard graphical window refreshing routine makes your gpu actually do work (and it indeed does), so that may cause the noise.
If not, then try only commenting out the aforementioned lg.present from love.run; you might notice your window contents being either frozen or glitched up on attempts to move it, or other windows above it. If still no noise, then one can assume that the standard graphical window refreshing routine makes your gpu actually do work (and it indeed does), so that may cause the noise.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests