Page 1 of 1

First collision event

Posted: Tue Oct 07, 2014 10:26 pm
by ToooBig
Hi!
I am trying to make a prototype of the game and i'm using BEPUphysics. But i have one problem: after first collision event I have some delay for about 0.5 sec. There are no other delays further. And i dont know how to fix it. Any ideas?
Thanks.

Re: First collision event

Posted: Tue Oct 07, 2014 10:36 pm
by Norbo
Sounds like either lazy initialization of data (previously untouched static resource pools are a likely culprit) or JIT. This thread goes over some ways to force the work at load time: viewtopic.php?f=4&t=1769

Re: First collision event

Posted: Wed Oct 08, 2014 5:29 pm
by ToooBig
Forsing JIT compilation solved the problem.
Thanks for such fast and helpful answer!