User Tag List

Results 1 to 8 of 8

Thread: Quick Question

  1. #1
    Snarwin
    Guest

    Quick Question

    How long, in real time, does the average ZASM command take to execute?

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,033
    Level
    31
    vBActivity - Bars
    Lv. Percent
    9.06%

    Re: Quick Question

    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.

  3. #3
    Gel
    Join Date
    Dec 2006
    Age
    32
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    737
    Level
    9
    vBActivity - Bars
    Lv. Percent
    54.94%

    Re: Quick Question

    They usually take exactly 1/60th of a second, assuming you have cap fps turned on.

  4. #4
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,963
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.71%

    Re: Quick Question

    Quote Originally Posted by thebetter1 View Post
    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.

  5. #5
    I shall exalt myself over all Armagedddon Games bigjoe's Avatar
    Join Date
    Apr 2000
    Age
    39
    Posts
    5,622
    Mentioned
    87 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,578
    Level
    24
    vBActivity - Bars
    Lv. Percent
    94.31%

    Re: Quick Question

    Wait, that means 1000 simultaneous Drawtile commands causes a 75% loss?


  6. #6
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,963
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.71%

    Re: Quick Question

    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.

  7. #7
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,538
    Level
    16
    vBActivity - Bars
    Lv. Percent
    48.44%

    Re: Quick Question

    Quote Originally Posted by bigjoe View Post
    Wait, that means 1000 simultaneous Drawtile commands causes a 75% loss?
    why on god's green earth would someone need to do 1000 simulaneous drawtiles at once?!?
    ... 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)

  8. #8
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,963
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.71%

    Re: Quick Question

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social