Repository navigation
Conversation
ee54f90 to
4abe2aa
Compare
…step holds 30 fps, and goes back to the cap after 30 s at fair or better (DM_THERMAL_CAP=0 turns it off; the Mac reports no thermal state). At serious iOS caps the GPU clock to about a third: Breath of the Wild's vistas (about 3,000 G-buffer draws) took 17-26 ms a frame and dropped frames in most 300-frame windows; a steady 30 also lets the device cool. Tests: t_nvn 152, t_fstep 51, t_present_snap 13, iOS compile check
… movie or thermal state serious; it said prerendered movie for both), and docs/reference/frame-rate.md has its entry (A thermally serious iPhone holds 30 fps), linked from Breath of the Wild's note; the symptom index is regenerated
Hold the host frame step at 30 fps while iOS reports serious or critical thermal pressure, and restore its configured cap after 30 calm seconds. Keep the existing movie cap and DM_THERMAL_CAP=0 override. Sample thermal state independently of movies and configured 30 fps targets so heating resets recovery and cooling counts during playback. Serialize the sample, cached cap and recovery timer across acquire/present readers. The original PR failed five timing checks and ThreadSanitizer detected a race through concurrent production cap getters. Add controlled-clock production-path regressions and CI coverage, including disabled/inactive caps and ThreadSanitizer. Record the shared mechanism and validation limits in the frame-rate reference and BotW note. Validated on latest main with the BotW profile: 24 thermal checks normally and under ThreadSanitizer, 51 frame-step checks, 154 NVN checks, the present-snapshot suite, 21 tool/docs checks, Mac host build, and iOS compile check (133 sources). No new device gameplay or thermal recovery run. Co-authored-by: v0lumehi <[email protected]>
|
Integrated on Review confirmed two bugs, now fixed in that commit:
The original code failed five controlled-clock checks. The integration passes all 24 thermal checks both normally and under ThreadSanitizer, plus 51 frame-step checks, 154 NVN checks, all four present-snapshot scenarios, 21 tool/docs checks, the BotW Mac host build, and iOS compilation of 133 sources. Thermal regressions are included in CI. No fresh iPhone gameplay or on-device recovery-to-60 test was performed; the controlled-clock tests validate the recovery policy, while the device measurements above remain the PR author's. Closing this PR because its functionality and the review fixes are incorporated directly into |
The thermal cap (seedds#220) holds the frame step at 30 fps while iOS reports a serious or critical thermal state, and DM_THERMAL_CAP=0 turned it off only from an env file. It is a trade a player should be able to make: with a phone cooler, or for a player who would rather have an uneven 45 to 55 than an even 30, it costs more than it saves. "Halve when hot" in Performance, on by default, so nothing changes for anyone who does not touch it. Shown only for a game with a frame step, as Hold frames when late is. The note says what the thermal state does not catch. On an iPhone 17 Pro Max, Breath of the Wild 1.9.0 dropped a third of its frames for ten minutes with the state reading nominal throughout, and one scene's GPU time went from 8.40 ms to 21.83 ms while it still read nominal: iOS lowers the clock well before it calls the device hot. The same phone, charged over USB while large apps were installed onto it, started a game already at serious and was held at 30 from the first frame, which is the case the setting is for.
Hold the host frame step at 30 fps while iOS reports serious or critical thermal pressure, and restore its configured cap after 30 calm seconds. Keep the existing movie cap and DM_THERMAL_CAP=0 override. Sample thermal state independently of movies and configured 30 fps targets so heating resets recovery and cooling counts during playback. Serialize the sample, cached cap and recovery timer across acquire/present readers. The original PR failed five timing checks and ThreadSanitizer detected a race through concurrent production cap getters. Add controlled-clock production-path regressions and CI coverage, including disabled/inactive caps and ThreadSanitizer. Record the shared mechanism and validation limits in the frame-rate reference and BotW note. Validated on latest main with the BotW profile: 24 thermal checks normally and under ThreadSanitizer, 51 frame-step checks, 154 NVN checks, the present-snapshot suite, 21 tool/docs checks, Mac host build, and iOS compile check (133 sources). No new device gameplay or thermal recovery run. Co-authored-by: v0lumehi <[email protected]>
Game carries eleven unrelated rows: how fast the game runs, how large it renders, which console mode it reports, how the finished frame is scaled, fitted and shaped, which language it speaks, how the Mac window opens, and a frame-rate read-out. The only thing they have in common is that none of them belonged in Controls or Performance. Picture takes the rows that are about the finished frame rather than about the game: Render scale, Upscaling, Game's upscaler, Picture and Picture shape. Game keeps Frame rate, Dynamic resolution, Console mode, Game language and the Mac's Display mode. The frame-rate counter moves to Performance next to the Performance HUD, since both are read-outs rather than settings. The iOS in-game menu follows the sections, so the counter comes after the controls there. The split matters more as the section grows. With the anisotropic and trilinear filtering of seedds#335 and the upscaling detail and sharpening of seedds#345, Game would hold fifteen rows, nine of which are about how the picture looks. The heading order on screen is the order of SECTIONS, and rows keep their table order inside a section, so settings.tsv still decides the layout on its own. In docs/settings.md the Picture section takes the anchor #picture, and the Picture setting inside it becomes #picture-1. The thermal cap (seedds#220) holds the frame step at 30 fps while iOS reports a serious or critical thermal state, and DM_THERMAL_CAP=0 turned it off only from an env file. It is a trade a player should be able to make: with a phone cooler, or for a player who would rather have an uneven 45 to 55 than an even 30, it costs more than it saves. "Halve when hot" in Performance, on by default, so nothing changes for anyone who does not touch it. Shown only for a game with a frame step, as Hold frames when late is. The note says what the thermal state does not catch. On an iPhone 17 Pro Max, Breath of the Wild 1.9.0 dropped a third of its frames for ten minutes with the state reading nominal throughout, and one scene's GPU time went from 8.40 ms to 21.83 ms while it still read nominal: iOS lowers the clock well before it calls the device hot. The same phone, charged over USB while large apps were installed onto it, started a game already at serious and was held at 30 from the first frame, which is the case the setting is for. The tests follow: Render scale is a basic row under Picture, and in the Mac window's list for Breath of the Wild every Game row is basic, so its Advanced settings start at Picture.
…orrection' (seedds#220) from blasteryui/BananaNative:dexter/eden-pokopia-camera-20261112 into android Reviewed-on: https://git.eden-emu.dev/moceure/BananaNative/pulls/220
Game carries eleven unrelated rows: how fast the game runs, how large it renders, which console mode it reports, how the finished frame is scaled, fitted and shaped, which language it speaks, how the Mac window opens, and a frame-rate read-out. The only thing they have in common is that none of them belonged in Controls or Performance. Picture takes the rows that are about the finished frame rather than about the game: Render scale, Upscaling, Game's upscaler, Picture and Picture shape. Game keeps Frame rate, Dynamic resolution, Console mode, Game language and the Mac's Display mode. The frame-rate counter moves to Performance next to the Performance HUD, since both are read-outs rather than settings. The iOS in-game menu follows the sections, so the counter comes after the controls there. The split matters more as the section grows. With the anisotropic and trilinear filtering of seedds#335 and the upscaling detail and sharpening of seedds#345, Game would hold fifteen rows, nine of which are about how the picture looks. The heading order on screen is the order of SECTIONS, and rows keep their table order inside a section, so settings.tsv still decides the layout on its own. In docs/settings.md the Picture section takes the anchor #picture, and the Picture setting inside it becomes #picture-1. The thermal cap (seedds#220) holds the frame step at 30 fps while iOS reports a serious or critical thermal state, and DM_THERMAL_CAP=0 turned it off only from an env file. It is a trade a player should be able to make: with a phone cooler, or for a player who would rather have an uneven 45 to 55 than an even 30, it costs more than it saves. "Halve when hot" in Performance, on by default, so nothing changes for anyone who does not touch it. Shown only for a game with a frame step, as Hold frames when late is. The note says what the thermal state does not catch. On an iPhone 17 Pro Max, Breath of the Wild 1.9.0 dropped a third of its frames for ten minutes with the state reading nominal throughout, and one scene's GPU time went from 8.40 ms to 21.83 ms while it still read nominal: iOS lowers the clock well before it calls the device hot. The same phone, charged over USB while large apps were installed onto it, started a game already at serious and was held at 30 from the first frame, which is the case the setting is for. The tests follow: Render scale is a basic row under Picture, and in the Mac window's list for Breath of the Wild every Game row is basic, so its Advanced settings start at Picture.
A steady 30 fps instead of dropped frames when the device is hot
When an iPhone reaches thermal state serious, iOS lowers the GPU clock to about a third. On the iPhone 17 Pro Max, the median of the frame's tiny passes goes from 6 µs to 22 µs. Breath of the Wild's vistas have about 3,000 G-buffer draws, and at that clock they take 17–26 ms of GPU time per frame. At a 60 fps target, most 300-frame windows then dropped frames, and the phone kept heating.
With this PR, the host's frame step holds 30 fps while the device is serious or critical (
NSProcessInfo.thermalState≥ 2):thermal state 2: the frame step holds 30 fps until …and… back to the frame rate cap; the frame step's line names the reason (frame step cap 60 → 30 fps … (thermal state serious)).DM_THERMAL_CAP=0turns it off.A steady 30 is also the cheaper state, so the device has a chance to cool down.
Measured (iPhone 17 Pro Max, iOS 27.0.1, BotW docked)
Not observed yet: the way back to 60. In these runs the device didn't return to fair for 30 s.
Checked
dmhostfor three profiles, the iOS compile check and the tool tests all pass.t_nvn(152 checks),t_fstep(51) andt_present_snap(13) pass.docs/reference/frame-rate.md(A thermally serious iPhone holds 30 fps), the symptom index, and the game's note.