Ricardo
Member
Hi there! I'm working in a visual novel game that has a LOT of images, and that's why I ensure to use draw_texture_flush() when changing levels no keep VRAM usage as low as possible.
Doing some test with GPU-Z, I've noticed that, in Windows (with "Create textures on demand" option enabled), draw_texture_flush() do its works perfectly and memory usage drops consistently when the function is called.
On the other hand, in HTML5 (using Chrome or Firefox), I've noticed that the VRAM usage is not affected in any way by draw_texture_flush(). The amount of VRAM increase during the game progress and no matter what I do, It simply never drops unless I close the tab. I tracked this using GPU-Z,Chrome's task manager and Firefox's about:memory option - the result is congruent in all tools.
The manual doesn't state that draw_texture_flush() doesn't work in HTML5, so I presume that this behaviour is a bug - or maybe the manual is outdated or perhaps this conduct is expected in these browser I tested.
Someone know something about this problem? I really need this function working in my game.
Doing some test with GPU-Z, I've noticed that, in Windows (with "Create textures on demand" option enabled), draw_texture_flush() do its works perfectly and memory usage drops consistently when the function is called.
On the other hand, in HTML5 (using Chrome or Firefox), I've noticed that the VRAM usage is not affected in any way by draw_texture_flush(). The amount of VRAM increase during the game progress and no matter what I do, It simply never drops unless I close the tab. I tracked this using GPU-Z,Chrome's task manager and Firefox's about:memory option - the result is congruent in all tools.
The manual doesn't state that draw_texture_flush() doesn't work in HTML5, so I presume that this behaviour is a bug - or maybe the manual is outdated or perhaps this conduct is expected in these browser I tested.
Someone know something about this problem? I really need this function working in my game.