View Issue Details

IDProjectCategoryView StatusLast Update
0000052Medieval EngineersBugpublic2020-10-21 21:50
Reporterequinox Assigned Toequinox  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.7.2 
Target Version0.7.3.33D4BBFixed in Version0.7.3.33D4BB 
Summary0000052: Block colliders are added to the sparse grid multiple times
Description

The physics shape for grids is divided up into GridCellSize^3 cells (6 for large grid, 12 for small grid), with blocks getting added to any grid cells they intersect with. Because of this blocks that take up more than a single coordinate on the grid can end up getting added to the sparse grid shape multiple times. When colliding with voxels especially this can easily cause a 4x slowdown.

A possible fix is to introduce LODs to the grid cells, where larger blocks are put into larger cells. More testing is require to ensure this actually performs well.

Steps To Reproduce

Place the 800mm gun from https://steamcommunity.com/sharedfiles/filedetails/?id=1627544201 near voxels.

TagsNo tags attached.

Relationships

related to 0000051 resolvedequinox Poor grid-voxel collision performance for large multi-shape blocks  
child of 0000012 resolvedequinox CPU usage spikes with dynamic grids on voxels  

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-10-12 22:51 equinox New Issue
2020-10-12 22:51 equinox Relationship added related to 0000051
2020-10-12 22:51 equinox Assigned To => equinox
2020-10-12 22:51 equinox Status new => assigned
2020-10-18 02:51 equinox Target Version => 0.7.3.33D4BB
2020-10-18 03:04 equinox Relationship added child of 0000012
2020-10-20 21:33 equinox Status assigned => in progress
2020-10-21 21:50 equinox Status in progress => resolved
2020-10-21 21:50 equinox Resolution open => fixed
2020-10-21 21:50 equinox Fixed in Version => 0.7.3.33D4BB