why is Ubuntu slower then XP for my C++ app?
Hello,
I have programmed in c++ a simple particles simulation using glut, opengl, std (math and list) functions. I've compiled my code with gcc 4.1 with -o3 flag and using MMX, SSE, SSE2, SSE3 (-match = prescott) - so that it's optimized for my computer. on windows i did the same using the latest MinGW port of gcc... I set the frame rate to 33FPS, and count how many calculations per sec i get in the IdleFunc: on Ubuntu it's 22000, while on winXP it's 27000... both operating systems use the latest drivers... any ideas? |
There's a lot of variables which you would need to isolate in order to answer the question. Here's some I can think of off the top of my head, I'm sure there are many more:
Testing these ideas would mean writing some different programs. Performance analysis isn't easy :) Turn on profiling and see if you can isolate where the differences are. |
thank you very muc for your post, I haven't used profiling until now - but i think it's worth learning =)
|
All times are GMT -5. The time now is 05:22 PM. |