Quote Originally Posted by pkmnfrk View Post
Edit, RE PutPixel vs Circle:

I just did some testing. Although I got slow down for flake quantities > 500 (or so), I discovered something else in favour of using Circle. Although I have absolutely no idea how the primitive drawing system works in ZC, I can make a guess based on this experiment.

Essentially, I built in a way to switch between 5 PutPixels and 1 Circle. At 500 flakes (thats 500 circles vs 2500 PutPixels), half the PutPixel flakes didn't show up! I would switch between the two, and watch half the snow flakes blink in and out of existence. I am of the opinion that I used up all the Primitive drawing command buffer (or something to that effect).

So. I'm sticking with Screen->Circle for now.
Hmm, that's an interesting one....


Wow, there's a bug or something in there. I couldn't even profile putpixel because of it. This is what I used:

Code:
const int LOOPS = 1;

global script slot2 
{
	void run() 
	{
		while(true) 
		{
			for(int i = 0; i < LOOPS ; i++)
				for(int x = 0; x < 256; x++)
					for(int y = 0; y < 176; y++)
						Screen->PutPixel(6, x , y, 2, 0, 0, 0, 64);
			Waitframe();
		}
	}
}

It completely crippled the engine. I wonder why?