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
Need Scrolling method
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Need Scrolling method
Movies should be more like music
Re: Need Scrolling method
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.
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
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
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
- Attachments
-
- branch.tar.gz
- game
- (238.24 KiB) Downloaded 127 times
Movies should be more like music
Re: Need Scrolling method
Weird, maybe it's a driver compatibility issue or something like that. The game runs fine performance wise.
Re: Need Scrolling method
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.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests