03-12-2020, 02:05 PM
(03-12-2020, 01:16 PM)memoryofgod Wrote: [FIXED] For some reason there was a game object called 'OniCollisionWorld' in my scene hierarchy which has a script on it 'OniColliderWorld'. It was this that was tanking performance. No idea how it got there, I think it might have been autogenerated when creating some Obi objects? But removing that my fps jumped back up to 200fps.
Hi there,
That object should automatically removed when you switch from the Oni backend to Burst. If you switched backends while a compile error was present, or some other circumstance prevented Obi from removing that object, it might linger around, causing all colliders in your scene to be updated for both backends and affecting performance.
In Obi 5.6.2 (out in a few days) we've added a quality of life improvement that ignores existing ColliderWorld components that no backend is making use of. In cases such as this where stray/leftover ColliderWorld components are still around, Obi will ignore them.