How long, in real time, does the average ZASM command take to execute?
How long, in real time, does the average ZASM command take to execute?
Depends on the command, and the speed of you computer.
You can do your own benchmarking by creating a FFC with a sufficiently large for loop.
They usually take exactly 1/60th of a second, assuming you have cap fps turned on.
What?!
Actually I did run a few tests on this last week. ^_^
First two numbers, ratio of commands(in thousandths) to processor speed(in Ghz). Next number, percentage of frame rate drop.
Drawtile: 1 to 2.7; 75% loss.
PutPixel: 2.5 to 1; 11% loss.
Moving Link X,Y: 2.6 to 1; 9% loss.
FFC X,Y; same as above.
...Forgot to do enemies though.
This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.
Wait, that means 1000 simultaneous Drawtile commands causes a 75% loss?
Mathematically, yes, on a 2.7 Ghz processor, with no other scripts or game engine screen enemies.. etc, taken into consideration.
What that would do to slower computers would be unbearable however.
This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.
... i just died a little inside...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"
--Andross Maximillion Remedy
(otherwise known as Rem)
Well for optimization. It's clear that drawtiles are about the slowest thing you can do. So if you had a screen with lots of scripts running and were getting a lot of lag, you might want to consider not using those 20+ drawtiles just for some kind of transparent effect..or whatever.
Also I made a slight typo, it's in thousands not thousandths.
This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.
There are currently 1 users browsing this thread. (0 members and 1 guests)