View Issue Details

IDProjectCategoryView StatusLast Update
0004836The Dark ModCodingpublic16.04.2021 21:31
Reporterduzenko Assigned Tocabalistic  
PrioritynormalSeveritytweakReproducibilityhave not tried
Status feedbackResolutionopen 
Product VersionSVN 
Target 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.


related to 0005591 resolvedcabalistic Reduce map load time 




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.


16.06.2018 13:19

developer   ~0010533

Last edited: 16.06.2018 13:19

View 2 revisions

Grayman was investigating this in 2014 here:

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



16.04.2021 15:25

developer   ~0013864

How much of this is implemented in 0005591 ?


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 View Revisions
14.06.2018 08:31 duzenko Description Updated View Revisions
14.06.2018 08:31 duzenko Description Updated View Revisions
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 View Revisions
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