Page 1 of 1

Multi Threading FPS Spikes

Posted: Tue Jan 18, 2022 10:38 am
by douya_5200
I implemented the bullet latest MT version and it got less laggy. But I'm getting fps spikes like this:

CPU: i7-10700
GPU: nvidia gtx 1030
scene setup: plaza and houses built with 1100+ rigidbodies, let them all be free falling and unconstrained using a line of code.
(there are 1100+ m_collisionObjects when they're falling)

before using mt: (opticks)
forumbefore.jpg
forumbefore.jpg (112.49 KiB) Viewed 14099 times
after using mt: (opticks)
forumafter.jpg
forumafter.jpg (65.78 KiB) Viewed 14099 times
and the threading looks like this:
bulletthreading.jpg
bulletthreading.jpg (117.76 KiB) Viewed 14099 times

I would like to get rid of these FPS Spikes but I dunno how :C. Anyone has any ideas?
Do I write my own scheduler? or is there any other way of optimizing this.

Re: Multi Threading FPS Spikes

Posted: Thu Feb 10, 2022 4:16 am
by douya_5200
Need help :shock: any directions?