Friday, March 12, 2010

Starting out the blog.

So here I am starting out the blog for the particle system. This format ought to be easy on the eyes. I've started reviewing the code and am currently working on speeding up my memory system so I can implement it into the particle system.

So far my output for the memory system is still slower than the mem lib.
For 10,000 iterations:
Release:
Mem Lib: stress test: 355.958700 ms
Custom Memory: stress test: 690.598190 ms
times faster: 0.515435
Debug:
Mem Lib: stress test: 1726.908207 ms
Custom Memory: stress test: 3269.583225 ms
times faster: 0.528174

50,000:
Release:
Mem Lib: stress test: 1742.919445 ms
Custom Memory: stress test: 3277.043343 ms
times faster: 0.531857
Debug:
Mem Lib: stress test: 4051.890373 ms
Custom Memory: stress test: 8225.121498 ms
times faster: 0.492624



If I reduce the stress test to just the mallocs, and remove the frees, my memory system does better.
10,000 Iterations
Release:
Mem Lib: stress test: 236.124858 ms
Custom Memory: stress test: 91.542751 ms
times faster: 2.579394

Debug:
Mem Lib: stress test: 778.461158 ms
Custom Memory: stress test: 357.236087 ms
times faster: 2.179122

For some reason, with 50,000 iterations with only the malloc's it crashes in release and in debug it just won't ever get past the original inner loop, I'm guessing it's a memory issue?

Hopefully I'll fix this issue tonight and will be able to begin implementing it into the particle system.



No comments:

Post a Comment