Inconsistent FPS Hiccups only on first run
SOLVED: You all will not believe the issue especially since I could find any mention of this anywhere. It was the skyboxes. I had skyboxes in many scenes (due to duplicating some of them during their creation) and while they do not change the sky in the Player or on the Quest when you async load the scene (which I am really unsure why) they must still have an impact in the load process, especially for heavier scenes that are already pushing the Quest. To fix, I "Set Active Scene" for each scene and then deleted it's skybox as I already set them elsewhere with code in strategic spots in my title. Once I did that all went back to perfect 72FPS without a single hiccup.
This explains why creating a new scene and copying the contents of an offending scene fixed the issue as a new scene has the default skybox which is a much lighter skybox than my others ones. This is also why when I created that fresh scene another scene would start acting up as the 2 scene shared the same skybox and hence when I fix one, the next one after is now the first to load that skybox in memory. No wonder I felt like I was playing Whack-A-Mole! GOSH...this was a hard one to detect. I spent many hours pouring over the various anlysis tools and performing untold trial and error builds, but the problem was very evasive especially since you never see the sky change. I cannot believe it was the Skybox for all these months. I encourage you to even delete the default skybox on a new async scene as even they have a small impact. I hope this solution helps others and prevents them from stalling their development.
Original Post:
I am stumped and hope others here can provide some insights. Simply, if you install my title and then run it, you may notice a handful of small FPS Hiccups. That said, the second and all subsequent runs will NOT have any FPS Hiccups. If you reboot your Quest after install then run it, you will also NOT have any FPS hiccups. Why? I used the Profiler and RenderDoc and all I see is the same elements in these scenarios, with that first run after install taking longer to load scenes. There is no obvious reason I can detect as to why.
I preload all my shaders when the app runs and I am async/additive loading scenes constantly which is what is causing the FPS hiccups during that first run after install. I really do not know where to look next. If you wish to see for yourself, it is in App Lab. This issue sucks as most would run immediately after install.
Thanks for any tips/insights
