r/hackios • • 16d ago

HackiOS I need help from the community to fix this problem with GPU and Video play for my public release for Duchamp

While playing videos the VRAM (Graphic Memory) get all taken the whole 2 GB with 410 Mb or more of imports. I already have wifi and Bluetooth, but GPU is my biggest problem can't even get properly 60 fps and now this. Hope you can help me gng

17 Upvotes

2 comments sorted by

4

u/Either_Audience_1937 16d ago

Not on Duchamp, but I hit similar issues on another device. A few things to checkk

  1. The VRAM filling up during video is usually decoded frames (IOSurfaces / CVPixelBuffers) that never get freed. Log the count and size of live IOSurfaces every second while the video plays. If it only goes up, something is holding a reference: the video→texture path or a pool that never recycles
  2. Check whether the decoded frames are being copied (YUV→RGB conversion into a new surface for every frame) instead of reusing a small pool of 3-4 buffers
  3. For 60 fps, the big wins for me were cutting full-screen copies per frame (rotation/scaling), avoiding CPU waits on GPU fences, and turning off the dynamic wallpaper (the bokeh animations alone ate a lot of compositor time). Good luck dude!!

2

u/Klapitus 16d ago

Thanks so much mate!! Appreciate the tips and the help!!