monster wrote:Cool, is there any difference in performance?
I've done some unscientific comparisons between std::map and stdext::hash_map. By looking at the FPS counter in the demo (eg Chain) it doesn't seem to be different. My guess is that the number of objects in the container isn't large enough to make much of a difference between the 2 search algorithms. I guess there's more time spent doing Ode calculations per object than doing searching. It would be interesting to use something like Apple's Shark to optimise Ode...
btw, has anyone got native Xcode project files (not upgraded) rather than these legacy Project Builder ones???
This could mean that the path is wrong to the OgreOdeTest.zip which should be in Samples/Media/packs. There's a path defined for this in OgreOdeTestApplication.h (~line81)
well thats not the case, i think. OgreOdeTest.zip seems to be in the correct place, coz I get this :
Zip Archive codec for ../../Media/packs/fresneldemo.zip created.
Zip Archive codec for ../../Media/packs/OgreCore.zip created.
Zip Archive codec for ../../Media/packs/ogretestmap.zip created.
Zip Archive codec for ../../Media/packs/skybox.zip created.
Zip Archive codec for ../../../Media/packs/OgreOdeTest.zip created.
Removing OgreOdeTest.zip immedietly gives me this :
An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: Zip::load
Description: Zip archive ../../../Media/packs/OgreOdeTest.zip not found..
So that is defiently not it.I am trying to _trim_ the test application down so I can get something going , and probably know _exactly_ where it crashed.
So that is defiently not it.I am trying to _trim_ the test application down so I can get something going , and probably know _exactly_ where it crashed.
Thanks anyway !
No worries it was worth a try. I'm wondering if you can run it in the debugger and get a stack trace when the exception occurs?
(gdb) next
Program received signal SIGSEGV, Segmentation fault.
__gnu_cxx::hash<dxSpace*>::operator() (this=0xfe229033, x=0xa8bbe48) at OgreOdeWorld.h:74
74 {
line 74 is where the custom hash functions are defined