Skip to content

Improve initialization speed. #64

@mtwoodard

Description

@mtwoodard

I've been trying to figure out what has been causing the initialization of the program to slow down so much. Once loaded the program runs smoothly so I figure it must be something to do with the loading of the shader files. I did find this response to someones question regarding loading a large file on stack overflow A commenter mentions that the way three loads files uses excessive memory. I think this is likely our issue.

A possible solution would be to break up the shader file into more digestible parts. I went ahead and tried this method for the time being since it's relatively simple.

Another option would be to either find some other loading library for loading large files to strings or to write our own. Both of these options would likely be the best solutions however would take a little while to implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions