Multi Threading FPS Spikes

Post Reply
douya_5200
Posts: 10
Joined: Tue Jan 18, 2022 10:29 am
Location: Guangzhou, China

Multi Threading FPS Spikes

Post 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 4484 times
after using mt: (opticks)
forumafter.jpg
forumafter.jpg (65.78 KiB) Viewed 4484 times
and the threading looks like this:
bulletthreading.jpg
bulletthreading.jpg (117.76 KiB) Viewed 4484 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.
douya_5200
Posts: 10
Joined: Tue Jan 18, 2022 10:29 am
Location: Guangzhou, China

Re: Multi Threading FPS Spikes

Post by douya_5200 »

Need help :shock: any directions?
Post Reply