View Issue Details

IDProjectCategoryView StatusLast Update
0005887The Dark ModCodingpublic16.02.2024 01:44
Reporterstgatilov Assigned Tostgatilov  
PrioritylowSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionTDM 2.10 
Target VersionTDM 2.11Fixed in VersionTDM 2.11 
Summary0005887: Raise trace model limits and optimize memory
DescriptionTrace models are limited in terms of size:
  // these are bit cache limits
  #define MAX_TRACEMODEL_VERTS 32
  #define MAX_TRACEMODEL_EDGES 32
  #define MAX_TRACEMODEL_POLYS 16
  #define MAX_TRACEMODEL_POLYEDGES 16

There is request to increase these limits.
For the first bump, try to double POLYS and EDGES.

Also, it would be great to optimize memory layout: remove traceModelPoly_t::edges array, and store index in a global array without idTraceModel.
Additional InformationOriginally discussed:
  https://forums.thedarkmod.com/index.php?/topic/21188-collision-mesh-limitations
TagsNo tags attached.

Activities

stgatilov

stgatilov

26.10.2022 21:16

administrator   ~0015364

A bunch of commits here:
  r10141 Made idTraceModel memory more compact.
  r10142 Don't save trash contents of idTraceModel.
  r10143 Raised tracemodel limits: polys[16 -> 32], edges[32 -> 63], verts[32].
  r10144 Simplify sign check (no branch).

The model from the referenced thread loads fine, and even behaves properly.
It would be great to check larger trace models as well...
stgatilov

stgatilov

13.11.2022 18:31

administrator   ~0015418

A bugfix followed:
r10157 Fixed bug in idTraceModel::SetupCylinder, introduced during refactoring.
stgatilov

stgatilov

16.02.2024 01:44

administrator   ~0016513

A small bugfix in rev 10645 (most likely for 2.13).

Issue History

Date Modified Username Field Change
23.01.2022 12:24 stgatilov New Issue
26.10.2022 21:15 stgatilov Assigned To => stgatilov
26.10.2022 21:15 stgatilov Status new => assigned
26.10.2022 21:16 stgatilov Note Added: 0015364
26.10.2022 21:16 stgatilov Status assigned => resolved
26.10.2022 21:16 stgatilov Resolution open => fixed
26.10.2022 21:16 stgatilov Fixed in Version => TDM 2.11
13.11.2022 18:31 stgatilov Note Added: 0015418
16.02.2024 01:44 stgatilov Note Added: 0016513