Found a strange thing. Buffer with Hardware mapping hint is not deleted when you delete the buffer itself. I am developing a voxel game. I added all Chunk Hardware mapping hint, but when you update the chunk (removal of node, creating a new mesh) memory is not freed. Without the inclusion of Haredwar mapping hint everything is fine.
What is the problem?
Thx!
Hardware mapping hint buffers remove problem
Re: Hardware mapping hint buffers remove problem
Not quite my area, but I remember there had been some timers involved in some buffer operations. So could be deleting is just delayed for this case (I don't remember the reasons, thought I'm pretty sure there had been some thread about that stuff a few years ago ...).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Hardware mapping hint buffers remove problem
How to configure the timer? Prompt please?
Re: Hardware mapping hint buffers remove problem
As far as I can see it's a hardcoded value in CNullDriver::updateAllHardwareBuffers. But I'm a little guessing here as well - this stuff is not my code. Not even sure if it's the effect you are seeing.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Hardware mapping hint buffers remove problem
And why not remove them immediately after removal of meshbuffer?
Re: Hardware mapping hint buffers remove problem
I don't know the reason - I think there was a thread about that once somewhere ... that's pretty much all I know.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Hardware mapping hint buffers remove problem
This problem is finally solved in shader-pipeline branch, where user handle buffers manually, but in current stable and upcoming release buffers are handle by IVideoDriver and like a CuteAlien said delete is delayed.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes