PDA

View Full Version : Fps with my tile-based engine...



Belmont
May 8th, 2005, 05:32 PM
I started over on a 2D engine, this time focusing on getting maximum frames per second when scrolling before I go adding other things.

I've also have been messing around with using different image types for the tiles to see what Flash can move around the fastest... so far it seem like PNG24, JPG & 8-bit BMP seem to get the highest FPS, with GIF & PNG8 coming in just over 10fps slower with my engine... actually, I got 120fps with PNG24, JPG & 8-bit BMP, so I don't know if any of them are faster than the others.

I was wondering if some of you people would mind telling me what fps you get with the engine. I know the FPS counter is a bit off, but it's close enough for me...

It usually says I'm getting about 123-124 fps... which I'm guessing is really about 119-120fps... so again, yes, the fps counter is off some. ;)

Also, I noticed when I have the swf embedded on a webpage it's fps drops almost in half, along with it's CPU usage... is that normal? Any way around it? :puzzle: Even when I set it's FPS to 30 and put it on a webpage it only runs at 24FPS or so... *sigh*

Anyway, if some people could post roughly what FPS they get & some general specs of their computer (CPU Speed, etc), I'd appreciate it! :beam:

Thanks ~
Belmont

E-Slayer
May 8th, 2005, 11:18 PM
I got average 124 fps standing and about 97 moving. I've got an Athlon 3000+ and a Radeon Sapphire 9200SE 128 MB. On a side note, when I clicked this, I forgot that fps can mean things other than First Person Shooter...

Belmont
May 8th, 2005, 11:52 PM
...I forgot that fps can mean things other than First Person Shooter...
Heheh, yeah... I forgot fps can mean thing other than Frames Per Second. :P

Well thanks for posting your results & PC specs!

I guess what video card a person has does have an effect with flash movies... I read that somewhere but wasn't sure how true it was, but since I have a slower processor (Athlon 2600+ Barton - overclocked to about a 2800+) but a faster video card (Radeon 9800SE 128MB 256bit RAM - unlocked & overclocked)... that accounts for the higher FPS... I guess. :h:

Well if anyone else wants to take two seconds to test it out & post your results, please do! The more the better! ;)

Thanks again for testing it~
Belmont

E-Slayer
May 9th, 2005, 12:16 AM
Hey, glad I could help you out...also, in regards to your topic about your hitTesting difficulties, what sort of shape restrictions are you trying to implement? I've mostly dealt with art-based, but I do have working circle and elliptical hitTests in my most recent project that I should get back to.

Belmont
May 9th, 2005, 12:46 AM
Ahh funny you should ask about that... I had given up on it a few days ago, but just about an hour or so ago I finally figured it out!

I basically wanted any movieclip of any shape I specified for a particular tile type to stop the player from moving in a direction that was about to place him within that movieclip... and it turns out the problem in my code was small & simple but due to my lack of fully understanding how hitTest worked, I didn't think to look for it, just assuming I messed something up with hitTest or localToGlobal.

It seems I was actually checking the wrong tiles for the .hitTest since I was checking tiles named "t_"+x+"_"+y when I should have been checking "t_"+y+"_"+x... heh, it's always something simple. :puzzled:

So, now I have pixel perfect hitTesting, and all is good. =)

Thanks for asking about that though!

colombianking
May 9th, 2005, 04:48 PM
this really has nothing to do with the thread but whats the script to make your guy appear after / ontop of the tiles im having a bit of a problem with my tile engine :krazy:

jcrash
May 9th, 2005, 08:18 PM
on a 12" Powerbook G4 1.33GHZ w/ 768 RAM, nVIDIA GeForce FX Go5200 64mb VRAM, running 10.3.8: I get 125 standing still, about 88 on short movements, 57 full speed, and about 60 when turning full speed. Flash Player 7.

Belmont
May 9th, 2005, 08:57 PM
Ahh, ok.

I only plan on running it at 30fps or so, but it's good to know how much head room I have for adding new features.

Anyway, thanks for posting! :beer:

jerez_z
May 9th, 2005, 09:04 PM
123-124 FPS when not moving, 20 - 30 (23 mostly) FPS when moving

I'm running a AMD Sempron 2400 (clocked at 1666 Mhz) with a 64 MB GeFroce2 card


its weird, when I'm staring at the FPS counter the character will appear to flicker and fade in and out... strange effect

Belmont
May 9th, 2005, 09:26 PM
Ooo, ouch... those frame rates make me want to cry. T_T

I hate your PC too! :P

Heh, not really, but I guess only people using newer video cards will be able to play my game if I keep my engine how it is... I guess I could lower the movie's dimensions a bit, then I won't have as many tiles on the screen at once... currently has 96 tiles loaded at any given time... or I could make the tiles bigger, which would also result in fewer tiles on the screen at once.

It's time to make it even faster I guess... or rethink how I want my game to work... if I don't have the background scroll I'll have tons of power left for other things... hmmm.

Hehe hmm, and not sure whats up with that strange effect you have going on... hehe :P

Well, anyway, thanks for posting your results! :)
~Bel

Smee
May 9th, 2005, 09:43 PM
123-124 FPS not moving, and 123-124 FPS moving.

I have an Intel P4 3.4GHz and an ATI Radeon 9800 128MB, 1024 RAM also if that matters.

It's cool how the (tires/feet/whatever) seem to move faster when you're going left or right, or are they moving faster? :puzzled:

Belmont
May 9th, 2005, 09:59 PM
Hehe yeah, since my tiles are twice as long as the are high, and since I want to give the sense of perspective, I have the character thingy move at half speed when moving up or down... it will look more natural once I get a proper character model and some scenery added in that's set to that prespective.

The last version of my engine, which is a bit slower than this one, already has a character added that's at the proper perspective, but without scenery it still doesn't look quite natural.

An example of that older engine can be found here: http://userweb.suscom.net/~illparadigm/

Well, I'm pretty sure now the video card is 90% of the equation when it comes to FPS with this type of flash movie.. sure seem so.

Thanks for your results!
~Bel

Smee
May 9th, 2005, 10:56 PM
That's cool! :D Looks like it's going to be good.

Cybernoid
May 10th, 2005, 02:29 AM
125 standing still, about 92 when moving. I've got an AMD XP2000+ and an ATI Radeon 9800 SE.

Cybernoid
May 10th, 2005, 02:30 AM
The old version is about 30fps standing and 28-25 when walking.

patricktheking
May 10th, 2005, 04:53 PM
123-124. never changes when stationary or moving

Smee
May 11th, 2005, 11:22 AM
I just noticed, if you go down to the bottom and go left or right, the top set of tiles doesn't disappear.

Joppe
May 11th, 2005, 11:45 AM
123 steady 44 movin' ;)

the_koriner
May 15th, 2005, 05:12 PM
Hey there

In reference to your comment about the FPS slowing down in a browser: that will always happen to some extent. The reason (i think) is because when you run the SWF in SWF player or projector exe, the system will allocate it as much resources (RAM, CPU) as it wants. However, Windows does not let browsers use as much resources as they want. I assume that's for security and performance issues, but the bottom line is that browsers aren't able to use up as much system resources as they want to.

I don't know if that's the case with all browsers, or just IE, but it might be interesting to test in different browsers :)

-k.