ACNHRecomp icon indicating copy to clipboard operation
ACNHRecomp copied to clipboard

Multiple waterfall frame drop issue

Open sya10086 opened this issue 2 weeks ago • 5 comments

I’m Sya — the member who reported the waterfall frame drops in the Windows channel of the ACNH Discord group.

Here’s the generated log.

1_nx.log

1_nx-previous.log

When this log finished generating, my character was still in the area with multiple waterfalls where the frame drops occur. From the moment I launched the game until I closed it, I went straight to the frame-drop area (the HHP work island) and stayed there the whole time. Thank you so much for looking into this issue. I’m happy to help with any tests you need. Thanks to the whole development team!

sya10086 avatar Nov 16 '26 16:11 sya10086

Thanks, Sya, this log is exactly what was needed.

What it shows (i7-9700 + RTX 2070, at the Happy Home Paradise work island with several waterfalls):

  • nvn/vk: per frame over 60: 47.6 fps, 1.0 submits, replay 18.06 ms, submit (encode) 0.11 ms, fence wait 0.00 ms, other 1.17 ms, present 0.62 ms, upload 8.27 MB. The replay (turning the game's NVN command buffers into Vulkan) takes ~18 ms a frame there, while the present and the fence waits are almost nothing: the GPU is waiting on us. That's why 720p and 1440p give the same 40-50 FPS, and why areas without waterfalls reach 60 even at 4K.
  • About 8 MB of uploads a frame at the same time (nvn: uploads copied 760-920 MB … 270,000-360,000 copies per summary, against ~640 MB in ~73,000 copies elsewhere): the waterfalls bring a large number of small copies.
  • pipelined: … split (first part: 90% of the replay): the pipelined replay is on and doesn't hide it.
  • No pipeline or shader compiles in those frames, so it isn't shader stutter.

So it's a cost in the runtime's replay of what the waterfalls draw (most likely their many small buffer/texture updates), not the game itself nor the GPU. Next step: find which uploads those are (a trace near the waterfalls) and batch or skip the redundant ones. Until then, a 30 FPS cap keeps that area steady.

Nycolazs avatar Nov 16 '26 16:11 Nycolazs

Thanks, Sya, this log is exactly what was needed.

What it shows (i7-9700 + RTX 2070, at the Happy Home Paradise work island with several waterfalls):

  • nvn/vk: per frame over 60: 47.6 fps, 1.0 submits, replay 18.06 ms, submit (encode) 0.11 ms, fence wait 0.00 ms, other 1.17 ms, present 0.62 ms, upload 8.27 MB. The replay (turning the game's NVN command buffers into Vulkan) takes ~18 ms a frame there, while the present and the fence waits are almost nothing: the GPU is waiting on us. That's why 720p and 1440p give the same 40-50 FPS, and why areas without waterfalls reach 60 even at 4K.
  • About 8 MB of uploads a frame at the same time (nvn: uploads copied 760-920 MB … 270,000-360,000 copies per summary, against ~640 MB in ~73,000 copies elsewhere): the waterfalls bring a large number of small copies.
  • pipelined: … split (first part: 90% of the replay): the pipelined replay is on and doesn't hide it.
  • No pipeline or shader compiles in those frames, so it isn't shader stutter.

So it's a cost in the runtime's replay of what the waterfalls draw (most likely their many small buffer/texture updates), not the game itself nor the GPU. Next step: find which uploads those are (a trace near the waterfalls) and batch or skip the redundant ones. Until then, a 30 FPS cap keeps that area steady.

Thanks for the detailed explanation—that makes sense. I’m glad the log helped. If you need me to capture a trace near the waterfalls or run any specific tests, just let me know—I’m happy to help. Until then, I’ll use the 30 FPS cap in that area. Thanks again! I’m going to get some sleep now, otherwise I won’t be able to function at work tomorrow. I’ll be glad to help with any testing you need.

sya10086 avatar Nov 16 '26 16:11 sya10086

New data from Sya, on 0.12.0 with the same PC (i7-9700, RTX 2070, 2560×1440, 60 Hz). This time it's from their island. They see drops with the camera at eye level and a steady 60 FPS from above. The log doesn't record the camera, so this compares readings by speed:

Median per frame 59.5 FPS or more 30–56 FPS
Replay 7.7 ms 15.9 ms
Present 7.1 ms 0.3 ms
Fence wait 0.01 ms 0.00 ms

198 of the 246 readings were at 59 FPS or more. In the slower ones, the replay again takes almost the whole 16.7 ms frame, with almost no wait for the GPU. That's the same pattern as at the waterfalls (18.1 ms), but it's a different place. This doesn't show whether the replay got faster or slower, or that both drops have exactly the same cause.

So this isn't fixed in 0.12.0. The next step is still to measure which part of the replay costs the most in these scenes. Thanks, Sya!

Nycolazs avatar Dec 01 '26 12:12 Nycolazs

New data from Sya, on 0.12.0 with the same PC (i7-9700, RTX 2070, 2560×1440, 60 Hz). This time it's from their island. They see drops with the camera at eye level and a steady 60 FPS from above. The log doesn't record the camera, so this compares readings by speed:

Median per frame 59.5 FPS or more 30–56 FPS Replay 7.7 ms 15.9 ms Present 7.1 ms 0.3 ms Fence wait 0.01 ms 0.00 ms 198 of the 246 readings were at 59 FPS or more. In the slower ones, the replay again takes almost the whole 16.7 ms frame, with almost no wait for the GPU. That's the same pattern as at the waterfalls (18.1 ms), but it's a different place. This doesn't show whether the replay got faster or slower, or that both drops have exactly the same cause.

So this isn't fixed in 0.12.0. The next step is still to measure which part of the replay costs the most in these scenes. Thanks, Sya!

I have an idea: I want to run steady-state controlled tests at the same spot to help pinpoint the extra overhead in the replay phase.

Ground rules: camera position, view angle, game settings, version (0.12.0), and resolution will all stay identical. I will wait for the FPS to stabilize and avoid transient spikes from shader compilation before capturing logs.

Using a save editor, I plan to compare replay cost before and after adding each of these elements one at a time at the same location: waterfalls, ponds, flowers, vines, foliage, transparent materials, weather, and animated furniture.

Would this help your investigation?

sya10086 avatar Dec 02 '26 01:12 sya10086

New data from Sya, on 0.12.0 with the same PC (i7-9700, RTX 2070, 2560×1440, 60 Hz). This time it's from their island. They see drops with the camera at eye level and a steady 60 FPS from above. The log doesn't record the camera, so this compares readings by speed:

Median per frame 59.5 FPS or more 30–56 FPS Replay 7.7 ms 15.9 ms Present 7.1 ms 0.3 ms Fence wait 0.01 ms 0.00 ms 198 of the 246 readings were at 59 FPS or more. In the slower ones, the replay again takes almost the whole 16.7 ms frame, with almost no wait for the GPU. That's the same pattern as at the waterfalls (18.1 ms), but it's a different place. This doesn't show whether the replay got faster or slower, or that both drops have exactly the same cause.

So this isn't fixed in 0.12.0. The next step is still to measure which part of the replay costs the most in these scenes. Thanks, Sya!

Hi, I just updated to v0.12.1 and visited my work‑island. The frame rate has improved significantly. There is still some frame dropping, but the situation is noticeably better. Here are frame‑rate comparisons from before and after the update. Note that the 43‑fps part in the later video is shader compilation stutter, which is harmless. 0.12.0

https://github.com/user-attachments/assets/df45a325-a770-4ee4-a553-1773e83cd11d

0.12.1

https://github.com/user-attachments/assets/c26ba183-a104-49db-9f06-1531e4d74b97

nx.log

This improvement would be due to  NX_DYNAMIC_UBO=1 , right? I’ve attached the log generated after the update. It’s really great to finally see progress on this frame‑drop issue. Many thanks to the whole dev team, you guys are awesome!(σ′▽‵)′▽‵)σ🥰🥰🥰 I’m happy to cooperate with any further tests if needed. Also I have observations about light‑texture and model jitter bugs. In a couple of days I will organize them properly and report with precise logs.

sya10086 avatar Dec 02 '26 16:12 sya10086