vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
742 stars 55 forks source link

Memory Leak of cgo #72

Open boobusy opened 1 year ago

boobusy commented 1 year ago

image

The memory viewing with pprof is very small.

xlab commented 1 year ago

@boobusy is it a false alarm?

boobusy commented 1 year ago

@xlab The use of PresentMode = vk.PresentModeImmediate Memory growth is fast.

boobusy commented 1 year ago

maybe try "github.com/cannibalvox/cgoparam" Memory allocator.

xlab commented 1 year ago

@boobusy good idea, although I think this would beg for a full rewrite for my cgo generator xD

akyoto commented 2 months ago

I stumbled upon this on my Linux machine as well, with PresentMode = vk.PresentModeImmediate you can observe the memory growing very quickly.