Comments (9)
Just saw this. I've been busy with classes the past two semesters and haven't really had time to follow up on this. Whenever I get the chance I'll try porting my project to 0.7 and see if it helps.
from imgui-wgpu-rs.
Upon doing some profiling in Visual Studio, it appears the leak is related to upload_index_buffer(), upload_vertex_buffer(), and update_uniform_buffer() (Couldn't figure out how to export the heap snapshot, so here's a screenshot : https://i.imgur.com/DRIsHLc.png). Could this be an issue related to the vulkan backend of wgpu-rs rather than a problem with this crate?
EDIT: Also appears to occur with the DX12 and DX11 backends, with DX11 actually leaking faster than the other two.
from imgui-wgpu-rs.
Interestingly enough it appears to only leak in debug mode. When compiling in release the issue is seemingly gone.
from imgui-wgpu-rs.
Hmm odd, I never noticed ... Is this some new occurence?
Does this happen with Vulkan/Metal too?
I'll have to conduct some experiments, but maybe some1 else already knows :)
from imgui-wgpu-rs.
Yeah it happens with Vulkan (haven't tested metal), but it's not as bad as with DX11 and DX12, which have much worse leaks. Again, it seems to not happen on my friends Arch install, so could be an OS specific issue, or possibly even a driver or hardware specific issue. Definitely strange though.
from imgui-wgpu-rs.
Does this still happen with the latest wgpu 0.6 ports? I know that wgpu had some leak issues in 0.5 when using create_buffer_with_data.
from imgui-wgpu-rs.
I think I might be experiencing the same issue under DX12 with the latest wgpu master, I am seeing the memory usage of my program grow very quickly, around 100MB/s, even when idling. According to task manager, GPU memory is growing as well. I will see if the same "only leaks on debug" behavior is present in my code as well, and will report back.
from imgui-wgpu-rs.
I can confirm that using latest wgpu-rs fixes the memory leak. The first commit that fixed the issue is gfx-rs/wgpu-rs@66b900b
from imgui-wgpu-rs.
Awesome! Closing as out of scope. Feel free to reopen once another leak is found.
from imgui-wgpu-rs.
Related Issues (20)
- Random set_scissor_rect error HOT 2
- Support for drawing many vertices using DrawCmd::vtx_offset HOT 2
- Invalid ScissorRect parameters in examples HOT 9
- Update to wgpu-rs 0.8 HOT 11
- How to supply a custom sampler to a texture? HOT 2
- Set HiDpiMode to Locked(1.0) cause invalid scissor rect on MacOS
- Support winit 0.25 HOT 9
- WGPU 0.10 HOT 1
- Massive memory leaks on Mac OS when in background HOT 2
- imgui-rs v0.8 has been released and this crate seems to be incompatible HOT 2
- Crashing with `Invalid ScissorRect Parameters` HOT 13
- Widgets disappears when the containing window is moved HOT 1
- depth stencil parameter in renderpass HOT 1
- Windows build fails HOT 2
- Different blending compared to official OpenGL backend HOT 2
- Outdated imgui and wgpu versions HOT 5
- Docking not Working ? HOT 1
- Update imgui-rs to 0.11 HOT 1
- Cannot build. Failed to select a version of imgui-sys HOT 6
- Modal popups result in panic due to scissor rect problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui-wgpu-rs.