Hi, first i like to say i love this community, it has tought me all i know of programming.
so, going straight to the point, i have been trying to make a tile based scrolling game, and i used the simplest way i know to draw the map. The problem is that is slow as hell and i dont know what to do to make it improve the speed. I already try using spritebatch but I had the same problem and I cant use canvas cause my computer doesnt support it. I know there is a way to improve the speed, cause i can run Mari0 fine.
So help me please
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.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Map drawing really slow
- Attachments
-
- game.love
- here is the source code
- (1.6 KiB) Downloaded 122 times
Re: Map drawing really slow
I get a constant 60fps.
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
How!!! I get a max of 3fps !!!3!!!Lafolie wrote:I get a constant 60fps.
EDIT: maybe my computer isn that good, but if i can run mari0 fine, why cant i run this simple code?
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Map drawing really slow
!!!111!!11!!!11!11!!master both wrote:How!!! I get a max of 3fps !!!3!!!Lafolie wrote:I get a constant 60fps.
but seriously;
I am also getting 60fps. I checked out your code, and it looks fine.
Ensure that your video drivers are fully updated, then post your machine specs.
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
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Map drawing really slow
ok, I should buy a new pc...
Re: Map drawing really slow
Wait. As josefnpat suggest first update your graphics card drivers. Not the first time that someone here do it and get LOVE running it smoothlymaster both wrote:ok, I should buy a new pc...
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Map drawing really slow
ok, a will try it, but I dont think it will workcoffee wrote:Wait. As josefnpat suggest first update your graphics card drivers. Not the first time that someone here do it and get LOVE running it smoothlymaster both wrote:ok, I should buy a new pc...
EDIT: well, i tried and the results are the same... but i want to give a second try to be sure my computer doesnt suck, so can some one test this game and post the FPS that gave you? it gives me 8FPS.
- Attachments
-
- game.love
- (4.22 KiB) Downloaded 91 times
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Map drawing really slow
I'm getting 90 here.master both wrote:ok, a will try it, but I dont think it will workcoffee wrote:Wait. As josefnpat suggest first update your graphics card drivers. Not the first time that someone here do it and get LOVE running it smoothlymaster both wrote:ok, I should buy a new pc...
EDIT: well, i tried and the results are the same... but i want to give a second try to be sure my computer doesnt suck, so can some one test this game and post the FPS that gave you? it gives me 8FPS.
Can you please post your hardware specs?
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
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Map drawing really slow
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
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Map drawing really slow
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.
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
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 189 guests