Jump to content
Sign in to follow this  
Matthijs

Performance question

Recommended Posts

I'm wondering, what would have the least impact on the CPU while running...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MyVar=false

@MyVar

This?

Or:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MyVar=false

:LOOP

~(1+random 1)

if (!MyVar) then { goto "LOOP" }

this?

Can anyone tell me?

Can anyone tell me how often the "@" function runs?

Share this post


Link to post
Share on other sites
Quote[/b] ]MyVar=false

:LOOP

~(1+random 1)

if (!MyVar) then { goto "LOOP" }

Why are you using a random number? It's just extra stuff for the script to do rock.gif .

Share this post


Link to post
Share on other sites

It has to do with the application of the script.

Anyway, that was not the question. Question is: which script would be easier on the CPU while MyVar is false?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×