Replies: 1 comment 1 reply
-
The links you posted give 404 error - possibly the repository is set to private? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm following learnOpenGl PBR section on IBL and I managed to get everything working but in the initial frames the app is allocating a huge amount of memory (around 90gb) and hanging for a couple of seconds and then the resources are freed
I'm trying to make sense of what is happening and it looks like it's some internal resources created by wgpu, and the overall process for generating the environment maps are a bit complicated but I'll try to be brief
The weird part is that the app renders a couple of frames and then starts allocating a lot of resources stalling, so I'm not sure where this is coming from.
Profiling with Xcode gives some insights, but I really don't know what to look for
The Specular convolution map has a bunch of these (wgpu internal) clear texture view generated and these stay around the lifetime of the program
There are also multiple Texture2D allocated without any data, they are the same size of the display texture. so I imagine there's something wrong there.. (these get deleted once the program starts running agin)
here'e where I create the cubemap from equirectangular texture:
https://github.com/Hperigo/pira-wgpu/blob/main/src/pipelines/sky/mod.rs#L161
and here is where I do the specular convolution
https://github.com/Hperigo/pira-wgpu/blob/main/src/pipelines/sky/mod.rs#L464
It's weird that the app draws a couple of frames (meaning, all the textures were created) and then it goes into some sort of data race and starts creating a bunch or resources...
I wonder if anyone has any tips to try to track down this issue :/
Beta Was this translation helpful? Give feedback.
All reactions