MMX-accelerated MemCopy test (Win32 only)

BlitzMax Forums/BlitzMax Programming/MMX-accelerated MemCopy test (Win32 only)


About the whole MMX thing, you plannin on releasin a module or something which users could use a flag in their code to use to activate the module for operations if the user's system supports it for some speed gain?


The only thing such a module could contain for now is a faster MemCopy (and MMX/CPUID detector), just because I'm not an assembly programmer -- I simply copied and pasted it, then compiled it into a lib. I do know of a few more bits and pieces that might work as well. I'll release it anyway, just so anyone who might be wondering how to call assembly code from Max can look at a simple example.

It's taken from TinyPTC, the 2D pixel-blasting library, which should be good for the low level (non-interactive) demo coders out there -- that works nicely with Max so I'm going to do a little mod soon.

I'd still like to find an example of it failing nicely on non-MMX machines, just so I know it doesn't crash out...


And it doesn't go from 11 sec to 2 secs
It goes from 1.1 sec to 0.2 secs because 1000 ms = 1 sec.

I know that... but I said one million iterations goes from 11 seconds to 2 seconds, just to illustrate the kind of difference this makes*. This test does one hundred thousand iterations... so, :P

* Admittedly, 1 million 10MB copies isn't exactly an everyday requirement for most people...