kupo15
Member
I understand the potential drawbacks with sprite_add. It creates a texture page each time you call it resulting in poorly optimized tex pages. The IDE however, packs those sprites to save space so on the surface it seems like the IDE wins with memory. However, one would think that if you create your own optimized texture pages then use those for the sprite_add you wouldn't have the drawback I mentioned above because you are loading in an optimized tex page already. Plus, you would get the added benefit of not having any sprites in the IDE in memory when not in use period (because anything in the IDE uses system memory just by being there)
So then why does my test show that externally loading is monstrously worse? My experiment:
I have 8 full 4096x tex pages that I loaded into the IDE. I run the game and check task manager (yes I know it doesn't show VRAM but it does show system memory at least which is where that 1.7GB wall is) and the memory tab shows 96mb used. When I prefetch it, the memory goes up to about 546mb then comes back down to 96mb.
I took the same tex pages and put them in the included files then sprite_added all 8 of them. The task manager spiked up to 2,272 MB!!! Then came back down to 1,185MB!!!! I thought the numbers would be the same but they definitely are not. What's going on?
@rwkay
@Mike
@GMWolf any idea?
So then why does my test show that externally loading is monstrously worse? My experiment:
I have 8 full 4096x tex pages that I loaded into the IDE. I run the game and check task manager (yes I know it doesn't show VRAM but it does show system memory at least which is where that 1.7GB wall is) and the memory tab shows 96mb used. When I prefetch it, the memory goes up to about 546mb then comes back down to 96mb.
I took the same tex pages and put them in the included files then sprite_added all 8 of them. The task manager spiked up to 2,272 MB!!! Then came back down to 1,185MB!!!! I thought the numbers would be the same but they definitely are not. What's going on?
@rwkay
@Mike
@GMWolf any idea?
Last edited: