View Issue Details

IDProjectCategoryView StatusLast Update
0004836The Dark ModCodingpublic03.10.2021 17:06
Reporterduzenko Assigned Tocabalistic  
PrioritynormalSeveritytweakReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.10Fixed in VersionTDM 2.10 
Summary0004836: Early texture loading
DescriptionCurrently textures are loaded at the end of map load even though materials that create them are loaded rather early. This way we can parse materials and images at the same time in parallel.
Options/steps to move into a background thread:
0 - pass all image load errors to console as usual
1 - parse the image program
2 - load disk file content
3 - create a OpenGL texture on a secondary GL context (unless there is a context-less way to do this)
TagsNo tags attached.

Relationships

related to 0005591 resolvedcabalistic Reduce map load time 

Activities

stgatilov

stgatilov

16.06.2018 06:25

administrator   ~0010529

I think texture loading is dominated by pushing data into OpenGL library/driver. So I'm not sure if this idea would help much given the effort.

But as usual: if you introduce some multithreading, be sure to maintain a switch which makes everything single-threaded.
There is nothing worse than unavoidable Heisenbugs in the code.
nbohr1more

nbohr1more

16.06.2018 13:19

developer   ~0010533

Last edited: 16.06.2018 13:19

Grayman was investigating this in 2014 here:

https://svn.thedarkmod.com/svn/darkmod_src/branches/grayman_loading

I haven't found the bug tracker about it yet.

nbohr1more

nbohr1more

16.04.2021 15:25

developer   ~0013864

How much of this is implemented in 0005591 ?
stgatilov

stgatilov

16.04.2021 18:28

administrator   ~0013866

Most likely materials parsing takes very little time, there is no sense in overlapping materials loading and image loading.
Points 2 and 3 are now done in parallel.

I think nothing is left here.

Issue History

Date Modified Username Field Change
14.06.2018 08:20 duzenko New Issue
14.06.2018 08:30 duzenko Description Updated
14.06.2018 08:31 duzenko Description Updated
14.06.2018 08:31 duzenko Description Updated
16.06.2018 06:25 stgatilov Note Added: 0010529
16.06.2018 13:19 nbohr1more Note Added: 0010533
16.06.2018 13:19 nbohr1more Note Edited: 0010533
16.04.2021 15:24 nbohr1more Relationship added related to 0005591
16.04.2021 15:25 nbohr1more Note Added: 0013864
16.04.2021 18:28 stgatilov Note Added: 0013866
16.04.2021 21:31 nbohr1more Assigned To => cabalistic
16.04.2021 21:31 nbohr1more Status new => feedback
16.04.2021 21:31 nbohr1more Target Version => TDM 2.10
03.10.2021 17:06 nbohr1more Status feedback => resolved
03.10.2021 17:06 nbohr1more Resolution open => fixed
03.10.2021 17:06 nbohr1more Fixed in Version => TDM 2.10