laanlabs / metal-splats

Toy iOS + Metal AR Gaussian Splat Renderer
https://labs.laan.com
Other
317 stars 27 forks source link

Lag after switching between landscape and vertical screen mode #8

Open LingyunWang opened 7 months ago

LingyunWang commented 7 months ago

Appreciate for your cool repo very much ! It perform very well in AR mode ! And So, If keep using default screen mode after setting up app. But Switching between horizontal and vertical screen modes causes phone lag and high gpu cost.

1 The problem seems to be in a the Forge module...

2 class CameraControllerRenderer:: override func resize(_ size: (width: Float, height: Float)) The function is called when switching screen mode. We find the "size" parameter is the old value of previous pixel size, not the new one