Page 1 of 1

Need Scrolling method

Posted: Fri Mar 11, 2016 12:55 am
by poptard
Hello, this is poptard.

I am using the scrolling method at https://love2d.org/wiki/Tutorial:Effici ... _Scrolling,
however the game still gobbles up 45%+ of my processor while running, spiking to 80-90% at certain rare intervals.

Is there a more efficient method of tile-based scrolling?

updateTilesetBatch() would seem to clear and replenish the whole batch every second.
Could canvases reduce number of redraws?


Thanks for any help

Re: Need Scrolling method

Posted: Fri Mar 11, 2016 6:17 am
by MadByte
Welcome to the forums!
Could you share your code and also tell us what system (CPU, GPU, MEM, OS) you're working on?
For me it sounds like either your code causes a problem somewhere or you work on a toaster.

Re: Need Scrolling method

Posted: Fri Mar 11, 2016 4:59 pm
by poptard
I'm working on a brand new Asus X555L laptop Core i3, running Linux Mint.

It's runs Half Life 2 at 60 fps on max settings.


EDIT: Oh, i don't have that problem today. I guess my computer was just acting up for the past month

Re: Need Scrolling method

Posted: Fri Mar 11, 2016 6:48 pm
by MadByte
Weird, maybe it's a driver compatibility issue or something like that. The game runs fine performance wise.

Re: Need Scrolling method

Posted: Sat Mar 12, 2016 9:16 am
by pgimeno
I've noticed these kinds of problems when I run two OpenGL applications at once. They don't run at 50% speed, more like 5%. Wonder if that was poptard's case.