A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(profiler): the long tasks under a pinned frame name the scope that timed them
yhhab3e50ad2f5b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c4d39a477..05245acab 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -37,7 +37,7 @@ published separately; it ships inside the editor.### Fixed-- **The profiler no longer calls a long render stall vsync.** Time in the render submit that nothing measured was all filed as "present · vsync", with a hint that it was idle: an 820 ms frame spent growing text outlines read as waiting, and its banner blamed two domains of 0.1 ms. A wait now counts up to 50 ms, the slowest a display presents; the rest shows as "untimed work", marked as a hotspot. Text drawing has its own `render.text` row, and when timed work explains under half an over-budget frame the banner says so instead of naming a domain. `ScopeCost` gains `parent`: a scope measured inside another is listed under it.+- **The profiler no longer calls a long render stall vsync.** Time in the render submit that nothing measured was all filed as "present · vsync", with a hint that it was idle: an 820 ms frame spent growing text outlines read as waiting, and its banner blamed two domains of 0.1 ms. A wait now counts up to 50 ms, the slowest a display presents; the rest shows as "untimed work", marked as a hotspot. Text drawing has its own `render.text` row, and when timed work explains under half an over-budget frame the banner says so instead of naming a domain. A long task under a pinned frame is put down to the scope that timed it rather than to "GC / uninstrumented JS". `ScopeCost` gains `parent`: a scope measured inside another is listed under it.- **While editing, foliage and generated worlds follow the viewport.** A `WorldStreamingSource` in the scene used to hold foliage, generated worlds and voxels around itself in the edit view while terrain detail followed the viewport, and a 2D view counted as no viewpoint at all. Sculpting and painting a terrain also no longer copies the whole ground at each stroke: it keeps 32 by 32 tiles as they are first touched, so a diagonal stroke's undo holds what it reached and not the square around it.- **Zooming in on outlined text no longer freezes the editor.** Growing a bitmap glyph into its outline cost the fourth power of its size on screen, and a label did it again for every glyph at each step of the zoom: past 1500% a single frame took more than 15 seconds, and showing a hidden label at full zoom hung the editor. The outline now costs what the glyph's size does and looks the same, a frame stays under about 70 ms through the whole zoom, and `Auto` text at 128 screen pixels or more draws from a distance field wide enough to hold its outline. `Bitmap` is still honored where it is set, at the new cost.- **Labels no longer come back as black boxes after a change between Plays.** Stopping left each label's geometry in the engine, by entity number. Adding, removing or dragging anything before pressing Play again moved those numbers, so the old labels drew on other entities from an atlas already released.diff --git a/desktop b/desktopindex 57e06b730..deef867d3 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 57e06b73031b31aa955d6b023af1ba34734a338b+Subproject commit deef867d3fbea6e49bcbd9228e3359f4d5490337diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 18c043759..337733f70 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -4256,4 +4256,8 @@ export const NOTED = {{"note": "The profiler no longer calls a long render stall vsync."},"fix(profiler): a long block in the render submit is work, not vsync":{"note": "The profiler no longer calls a long render stall vsync."},+ "fix(profiler): a long task is put down to the scope that timed it":+ {"note": "The profiler no longer calls a long render stall vsync."},+ "fix(profiler): the long tasks under a pinned frame name the scope that timed them":+ {"note": "The profiler no longer calls a long render stall vsync."},};