Closed Shfty closed 4 years ago
I'm thinking this should be done by reimplementing the WAD parsing setup in C through a new libwad
library, for the sake of minimizing the amount of work GDScript has to do. WAD loading is currently a noticeable bottleneck in the texture generation process, so it would be good to eliminate it at the same time as fixing this issue.
Done, after a fashion.
Since WAD files are resources, they can't be loaded from outside the project at runtime.
Need to add a filename check that either loads resource WADs as-is, or invokes the WAD parser to read from a filesystem location and return a transient WAD resource for texture loading.