Repository navigation
·
16 commits
to master
since this release
Added
- Android games draw through OpenGL ES on phones below Android 12, where the Vulkan path cost a light game its 60 fps. The Vulkan drivers of phones that shipped before Android 12 (an Adreno 512 on Android 10, for one) build the frame's GPU commands on the game's own thread, beside Dawn and the game's systems; the same 2D game held 60 fps through OpenGL ES on a phone where Vulkan gave it 45. The native host now has two graphics backends behind one seam, Dawn and the engine's GLES device through EGL, picks OpenGL ES below Android 12 and Vulkan from 12 on, and falls back to the other when the one it picked cannot start. Project Settings → Packaging → Android → Graphics API sets it for every phone, and
adb shell setprop debug.estella.graphics gles(orwebgpu) tries one build both ways on a test device. On the GLES path images are no longer uploaded upside down, a captured frame is read before the swap, and readbacks no longer stall the frame. Dynamic resolution also counts the CPU time a driver spends inside the present as the frame's own: before, a frame held up by that work looked like one held up by the GPU, and the render scale was lowered to fractional values that only added a full-screen upscale. Reported in #247. - Agents can reorder siblings, which is how screen UI changes what draws on top.
set_parenttakesbeforeoraftera sibling, and theapply_scene_opsparent op takes the same, doing what dragging a row between two others in the Hierarchy does: the entity becomes that sibling's sibling, right before or after it, in one undo step, and the reply lists the siblings in their new order. Screen UI draws in that order, root Canvases included, so this is the way to bring a panel forward.Canvas.layer, which agents tried instead, only says which cameras draw that UI and which picture aCanvasEffecttakes; its tooltip and the screen-UI guide now say so.
Changed
- Sprite and UI collection reuses component lookups. The renderer resolves component pools once per collection for optional data such as masks and hierarchy links, reducing CPU work in scenes with many 2D elements.
- Fully visible mesh placement groups need less CPU time to collect. The renderer copies cached instance records in one pass when the view contains the whole group and no placement needs a separate distance or level-of-detail decision.
- Large groups of mesh instances need less staging work. The renderer merges draws whose instance data is already contiguous without copying that data, reducing the CPU work and staging memory needed for repeated geometry.
- Draw command construction reuses clipping and sorting-group lookups. Sprites, UI, and meshes use the same resolved state for visibility, ordering, and drawing.
- Draw submission uses the shader's texture-unit mask. The renderer visits only the texture units the bound shader uses. WebGPU derives that mask from the same declarations that define its bind-group layout.
- Queries for two script components rebuild faster after membership changes. When no filters or inactive entities need checking, the ECS intersects the two component storages directly and preserves iteration order.
- Meshes with morph targets decode faster. The mesh reader copies bind matrices and morph deltas in blocks on little-endian hosts, including when an export checks the mesh against a platform's skinning budget.
- Meshes reuse material depth variant lookups. Meshes sharing a material and vertex layout reuse the shader selection for cutout depth prepasses and material-driven shadow passes during each collection.
- Meshes that share a material reuse its render-pass decisions. Mesh collection reuses each material's depth, shadow and tip-pass decisions within a view. Material edits take effect on the next collection.
- Scenes with many meshes spend less CPU time checking asynchronously compiled shaders. Meshes sharing a program can reuse its readiness check during collection. A later collection picks up the linked program and switches from preview shading.
- Collecting meshes and placements does less per-view distance and texture work. Untextured meshes skip demand calculations, and placements without a distance limit or texture demand skip unused centre distances. Textured geometry reuses the view's projection scale and any distances already measured for placement visibility.
- Draw lists that arrive in paint order take less CPU time to prepare. The renderer merges already ordered commands in place, avoiding a second copy of large sprite and UI lists.
- 3D physics spends less time finding standalone static colliders. Fixed steps reuse component membership to skip colliders that already have a rigid body or character controller. Runtime changes to collider ownership still take effect on the next step.
- Large visible mesh instance groups spend less time staging data. The renderer reuses complete rows of unchanged instance records and skips those rows in transfers to the GPU, reducing work when scenes are still or when separate groups move.
- Sprites and UI visuals need fewer rotation calculations per frame. Bounds and batch geometry share the projected Z rotation, including for quads, sliced images and filled controls.
- Meshes can reuse material program selection while a view is collected. The renderer shares the lookup across meshes using the same material and shader features. Material changes are picked up on the next collection.
- Sprite and UI batches resolve shared textures less often. Each render collect reuses the GPU texture, dimensions and slice borders for repeated handles, and both render paths apply the same material fallback.
- The default renderer skips depth prepass shader preparation. Enabling the prepass prepares the next scene draw list, including lists for shared camera views, reflections, and light probes.
- Draw batching copies fewer commands when the scene needs sorting. The renderer merges commands in their sorted order as it builds the final draw list. This reduces CPU work when many submitted draws merge into a small number of batches.
- Mesh collection skips probe work when the scene has no probes. A view detects irradiance volumes and reflection probes once before walking its meshes, reducing CPU work when lit meshes use the scene's environment lighting.
- Moving a mesh placement group takes less CPU time. When the group only translates, the renderer updates positions and bounds in its existing instance records and reuses the basis, tint and normal data.
- SIMD-enabled Web and WeChat builds spend less CPU time checking instance textures for changes. The renderer compares row bytes in parallel and still uploads changed rows or restores them after a device reset.
- Native WebGPU reuses resolved pipeline and binding state. Repeated draws in a render pass reuse the pipeline already set on its encoder. Each shader also shares its resolved binding layouts with its pipeline variants and bind groups.
Fixed
- An exported Android Studio project builds again: its manifest no longer fails Gradle's manifest merger. A comment in the manifest template held two hyphens in a row, which XML forbids inside a comment; the packager's own reader skipped comments without looking, so every APK built while the Android Studio project made from the same file failed at
processDebugMainManifest. The template is fixed, and the packager now refuses such a comment as Gradle does, naming the line, so the two can no longer disagree. The manifest also stops requiring Vulkan, which hid a game from phones without it in Google Play: it asks for OpenGL ES 3.0, which every supported phone has, and the host draws through it where Vulkan is missing or slow. Reported in #248. - The browser preview shows the game the shape the editor does, centred in the window. It filled the whole browser window, so a game that sat centred in the Game view or the standalone play window came out a different shape in the browser: more of the level at the sides, the HUD in the margins. The preview now takes the Game view's target screen, or the design resolution with Free Aspect, and centres a canvas of that shape; Scan Preview on a phone still fills the screen. An exported web game also sized its drawing buffer from the window rather than from its canvas, so a page that gave the canvas any other box (this preview, a site embedding the game in a column) drew it stretched; it now draws at the canvas's own box.
- A resource census no longer calls allocator jitter a leak. An exact byte counter that wobbles by tens of bytes could fit a slope a fraction of a byte above zero and fail the run. A pool or cache byte counter now has to grow by more than one byte a cycle; the smallest real leak the census can see is four.
- A document tab you closed no longer reopens by itself the next time the project opens. Closing a tab with no unsaved edits closed only the tab and left its document open behind it (a tab's Close and Close Others menu items, and a floating group's close, never closed the document at all), and the editor remembers which documents were open: a Tileset tab closed before quitting came back on every start. Every way a tab closes now closes its document too, asking first when it has unsaved edits, and the editor remembers only the tabs that are still open.
- Mesh exports honor the platform bone limit for indexed assets without filename extensions. The exporter partitions those skinned meshes just as it does
.esmeshfiles, while preserving their weight precision. - Indexed PNG textures without a filename extension honor export settings. Size limits and texture compression now apply while project references keep working.
- A frame capture on a lost GPU device says when the device went. A capture that finds the device already lost now says so and that the capture did not cause it; one that loses the device while it runs says that instead, both with the engine's loss report (backend, GPU, driver, the frame it happened on). The Frame Debugger panel and
capture_frameshow that reason, where a capture in the running game used to wait twenty seconds and report a frame that drew nothing. - A mesh shader with no material vertex hook no longer carries the hook's marker into the GLSL a device compiles. The marker stayed in the shader under
#ifdef ES_MATERIAL_VERTEXwhenever a material had no vertex hook. ANGLE, behind every desktop browser, skips that block unread, but a phone's own GLES driver tokenizes skipped blocks too and refused the@("Unknown character"), so on a driver that does, a mesh would not compile. It is now replaced with nothing, for WGSL as well. A native build also stops whensdk/dist/index.native.bundled.jsis older than the SDK sources, instead of embedding the previous SDK into the host, where a game then failed on the device with an error such as "drawPolygon is not a function". Reported in #247. - Legacy tilesets recalculate tile IDs when their atlas is rebound. The tile painter and collision preview refresh the ranges derived from atlas dimensions, including the starting tile ID of each later tileset.
- Material defaults apply during the first render pass. Coverage, transmission, tip passes, and shadow density now read shader defaults as soon as the renderer selects a pass. The same defaults and world-unit conversion apply when the GPU uniform block is eventually created.
- Prefab thumbnails no longer log "Unknown component type" for a project's own components. The editor reads a project component's fields but never runs project code, and the thumbnail loaded every component of the prefab anyway, so each one was refused once per entity whenever the Content Browser drew it. It read as a broken registration. The thumbnail now leaves those components out, as Prefab Mode and the scene view always have. The debugging guide for agents says what the editor does with project components and why a prefab built by them at run time shows its content only in Play.
- Probe lighting follows the instances that use it. Draws without probe lighting share the zero block, and batches with a mix of lit and unlit instances respect the probe buffer limit.
- Skinned meshes with a large skeleton honor the bone limit even when all their triangles fit in one section. Imports and exports keep a local bone table for the joints the section uses, preserving their skin weights.
- Tile painting waits for atlas-derived tile ranges to finish updating. Interrupted strokes roll back, and the active brush keeps the same tiles and flip flags when later tilesets move to new IDs.
- Tile atlas previews follow texture moves while the panels stay open. The Tileset editor and Tilemap Painter now refresh their atlas images when the asset index resolves the texture to a different path.
- Windows native rendering builds with MSVC again. The render-thread bindings compile with MSVC, and the native headless renderer links the same Direct3D dependencies as the game runtime.