Artificial limitations will be imposed

I’ve added an instructions/second counter (need +debug command line switch). The cube example is really lightweight, while the town example gives a little over 7,000 instructions per second. I’m going to take the heaviest example and multiply it by 5 or 10 and set a limit. This will make games run everywhere, well optimised and of a certain small arcadey distinction. The result is averaged every 5 seconds.

You can optimise for lower instruction counts, e.g.:

= x (* x 2)
= x (+ x 1)

Is 2 instructions but:

= x (+ (* x 2) 1)

Is 1 and does the same thing.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *