View Issue Details

IDProjectCategoryView StatusLast Update
0004836The Dark ModCodingpublic16.06.2018 13:19
Reporterduzenko Assigned To 
PrioritynormalSeveritytweakReproducibilityhave not tried
Status newResolutionopen 
Product VersionSVN 
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.

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

View 2 revisions

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.

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