Map drawing really slow
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Map drawing really slow
So you can run other LOVE things but not your code. I would say some performance flaw in your code. But did a look to your code and apparently there isn't a big map or off screen objects being wasted. I had no problems with it (+60fps) but I'm getting at start that strange map scrolling moving to left and wasn't for sure smooth al all. So back to to your code. Your camera code is very strange for me and I would bet if there is problems is for sure there. Try please use another 3rd party camera first and see if you having same kind of performance.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Map drawing really slow
i have the latest version, and i have made some comparisons between my game and Mari0 and there are 10 FPS different in the speed. my game gives 31 FPS and mari0 gives 41, so as a conclusion my game was runnig normal all this time and my graphic card sucks. lol.josefnpat wrote:What version of the graphics drivers are you running?master both wrote:ok, but dont laugh:Can you please post your hardware specs?
samsung n150 2010
os windows xp service pack 3
ram 1gb
graphic card Intel(R) Graphics Media Accelerator 3150
CPU Intel(R) Atom(TM) CPU N450 @ 1.66GHz
as you can see its really bad, but i dont understand why can i run mari0, almost, fine
It's very odd that mariO runs well and yours does not.
Compare driver versions against this.
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Map drawing really slow
So upping the the driver helped I see.
Mario, unless I'm mistaken (and slime can probably chime in here) takes the images and makes them into one image on load, so that they only have to draw 1-2 backgrounds per frame. If you're really pushing for FPS, there are a few things you can try using; edit: TIL the [wiki] tag.
Mario, unless I'm mistaken (and slime can probably chime in here) takes the images and makes them into one image on load, so that they only have to draw 1-2 backgrounds per frame. If you're really pushing for FPS, there are a few things you can try using; edit: TIL the [wiki] tag.
Last edited by josefnpat on Mon Sep 24, 2012 8:28 pm, edited 1 time in total.
Missing Sentinel Software | Twitter
FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Re: Map drawing really slow
Get some [wiki] tags in there
Spritebatches are good, especially if you don't have to update them. You can give the batch a bunch of quads and store it for later so that you don't have to keep rebuilding it all the time.
Spritebatches are good, especially if you don't have to update them. You can give the batch a bunch of quads and store it for later so that you don't have to keep rebuilding it all the time.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Map drawing really slow
the problem is that i cant support canvas, and i already tried spritebatch, but it didnt change the FPS. but it doesnt matter anymore, cause i change of computer and it run perfect now. the only problem i am facing now, is collision (if you havent heard of it) loljosefnpat wrote:So upping the the driver helped I see.
Mario, unless I'm mistaken (and slime can probably chime in here) takes the images and makes them into one image on load, so that they only have to draw 1-2 backgrounds per frame. If you're really pushing for FPS, there are a few things you can try using; edit: TIL the [wiki] tag.
Re: Map drawing really slow
It does matter though, because there are still people with computers like that, unless you don't mind dropping them from your audience. Anyway, I suspect that you were doing something odd with spritebatches, they're pretty useful. Were you rebuilding the batch every loop?
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Re: Map drawing really slow
I have 40fps, but the movement replicates 1fps. Original Poster, use the *dt variable with a random x multiplier. (then multiply that by the direction, 1 or -1)
Lua is not an acronym.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Map drawing really slow
Yeah i already did that, i change my code a little bit, its all working fine and i also make use of the spritebatch which does a little help, but thanks for the support, i love this communiry.qaisjp wrote:I have 40fps, but the movement replicates 1fps. Original Poster, use the *dt variable with a random x multiplier. (then multiply that by the direction, 1 or -1)
btw, your coding song of the week is awesome, i love NIN.
Re: Map drawing really slow
your welcome, i know - that album is EPIIIC.master both wrote:Yeah i already did that, i change my code a little bit, its all working fine and i also make use of the spritebatch which does a little help, but thanks for the support, i love this communiry.qaisjp wrote:I have 40fps, but the movement replicates 1fps. Original Poster, use the *dt variable with a random x multiplier. (then multiply that by the direction, 1 or -1)
btw, your coding song of the week is awesome, i love NIN.
Lua is not an acronym.
Who is online
Users browsing this forum: No registered users and 219 guests