nicholasmordecai / lightning-js

2 stars 0 forks source link

Resource Loader / GPU Cache #6

Open nicholasmordecai opened 7 years ago

nicholasmordecai commented 7 years ago

Make a more comprehensive resource loader that allows an optional parameter to tell the loader to upload the texture to the GPU. Also take care of things like: Loaded time - remove after x time if it hasn't been used? GC? Global name caching.. remove it from the pixi texture cache and add it to a custom cache

This has been done very recently by the guys at pixi. Look at their Garbage Collection on the GPU.

nicholasmordecai commented 6 years ago

Resource Loader has been completed, though still has 1 small bug. Pixi has done some major work on garbage collection, so there might not be any need to write any additional GC. I would still like to create an automatic upload util for putting all textures onto the GPU though.