Vadru93 / LevelMod

THPS3 LevelMod
Other
20 stars 2 forks source link

High CPU usage, major fps dropdowns on glass shatter #113

Closed DCxDemo closed 1 year ago

DCxDemo commented 2 years ago

New glass shatter code and maybe collision code as well introduced major overhead, causing a very high cpu usage compared to the original. Should add some global shatter pieces limit and kill pieces that are on the floor/under the floor. For instance, Vancouver is barely playable for a minute after multiple glass hits, causing lower fps and overall game slowdown. Alternatively, maybe can do it on gpu somehow.