View Issue Details

IDProjectCategoryView StatusLast Update
0005468The Dark ModGraphicspublic24.01.2021 10:40
Reporterstgatilov Assigned Tostgatilov  
Status assignedResolutionopen 
Product VersionTDM 2.09 
Target VersionTDM 2.10 
Summary0005468: Debug rendering like s_drawSounds does not work under com_smp
DescriptionThere are many useful debugging render tools under debug cvars.
Some of them don't work under com_smp, some of them force-disable com_smp (see 0004408).

Most likely problem is that these debug rendering have lifetime = 0, which means "only render next frame".
But with SMP it is broken, and needs fixing.
Steps To Reproduce1) Start any FM.
2) Enable "s_drawSounds 1".
3) Listen and look for sounds.

There should be box and text near every point where sounds originate.
It is printed with com_smp 0, but is not with com_smp 1.

TagsNo tags attached.


related to 0004408 resolvedduzenko Find a way to run game tics on a background thread 




31.12.2020 11:43

administrator   ~0013334

Ok, the main problem is that debug data like rb_debugLines is filled from game/frontend thread, while backend thread draw this data in parallel.
So in order to support it properly, some complicated double buffering would be necessary.

For now, I'll add s_drawSounds to the condition on disabling com_smp.
Also, I guess I'll commit some refactoring of debug geometry drawing (after 2.09 beta is over, I guess).
But I'm not sure this issue is worth fixing.


24.01.2021 10:40

administrator   ~0013503

Cabalistic did two related commits:
  r9079 Make debug primitives usable with com_smp
  r9084 Properly copy debug primitives over to backend
It is quite likely that they solve the original problem with SMP by copying the debug data.

I guess we need to review the hacks for 2.10 and probably remove them.

Issue History

Date Modified Username Field Change
27.12.2020 10:30 stgatilov New Issue
27.12.2020 10:30 stgatilov Status new => assigned
27.12.2020 10:30 stgatilov Assigned To => stgatilov
27.12.2020 10:30 stgatilov Relationship added related to 0004408
31.12.2020 11:43 stgatilov Note Added: 0013334
24.01.2021 10:40 stgatilov Note Added: 0013503