"Jeff Zaroyko" jeffzaroyko@gmail.com writes:
None as such since difference in performance is so large. I can say that without a doubt using HeapAlloc and HeapFree in this function causes noticeable delays such that in Battlefield 1942 the framerate is falls so much that it is unplayable, changing the allocation leaves no trace of this.
The first thing to try would be to get rid of the useless HEAP_ZERO_MEMORY. If that's not enough you should profile it to find where the bottleneck is.