Thorium wrote:There is no need for point and also no need for a even slower API point.
The fast way would be to use DrawingBuffer() to get the pointer to the image data and access it directly.
I totally agree with these 2 points

The fact is, I've broken my computer, so it's not usable and I had to code this quikly, without thinking through it all. I've made my point in using the point function and all the rest, it's ugly
Thorium wrote:The trick is to put a counter in and delay only every 10. or 100. or 1000. or so iteration.
I agree to this one too. In my code, I have just tryed to design some quick compression algorythme without even doing some research on the web... My point was : to create a code doing the job requested (compresse an image) to make the opportunity to slow this code down.
First you design the code to run the fastest way it's possible, and then you can slow it down. With this thinking, you can reduce the unecessary operation to a minimum.
Thorium wrote:But again we speak about 2% CPU load. It's acualy a lot of work for realy nothing what you try to do. That 2% does not mean another process does not have that 2%.
I agree that a use of 2% when the computer is doing nothing, only mean that window allow the code to run faster because IT can.
But, I also like this challenge, because it's an unusual way of thinking

and it might be fun to code this
