Repository navigation
OpenDE Android v0.4-beta
Pre-release
Pre-release
Beta Pre-release: This is an active beta build (0.4-beta). This update is focused on CPU/GPU performance optimizations across the engine, renderer, and UnrealScript VM, while preserving 100% visual and gameplay fidelity. These improvements significantly reduce frame time and draw calls, likely enabling many more devices (including mid-range Mali GPUs and handhelds) to achieve a smooth, playable FPS!
What's New in v0.4-beta
- Major Renderer & OpenGL ES Optimizations (Zero Visual Regression):
- Direct Mapped VBO Streaming (�eginUpload / endUpload) & 3-Slot VBO/EBO Ring Buffers: Eliminates intermediate CPU buffer copies (~1.3 MB/frame saved) and avoids GPU pipeline sync stalls between frames.
- Draw Call & Batching Reduction (~55%+ fewer draw calls on heavy outdoor maps): Added decalBatches, zero-copy persistent rushBatches, single-upload lushTranslucent, and collapsed static BSP index draws (drawStaticRanges).
- Mobile TBDR & Shader Optimizations: Added glInvalidateFramebuffer on depth/MSAA attachments after resolves, direct SSAO composite into the target framebuffer, conditional if (uGamma != 1.0) guard around fragment pow(), and on-demand uniform/state uploads in UberShader.
- Fast Occlusion & Multi-Core Worker Offloading: Rewrote SpanBuffer to a contiguous uint64_t bitset (�its +
owOpen), added hierarchical planeMask frustum culling in occludeView, and offloaded collectLights and gatherActorCandidates to a persistent background worker thread. - Mesh & Lighting Cache Improvements: Fast-path caching for PF_Environment meshes, unordered_map pose caches, sameLod triangle reuse, precomputed invRadius in �ctorLight, and unchanged-light skip in LightmapAtlas::animate.
- UnrealScript VM, Physics & Core Engine Speedups:
- Flat Power-of-Two Hash Tables (FlatFuncTable): Replaced std::unordered_map lookups in UClass::vtable and UState::functions with cache-friendly open-addressing tables, plus fast inline objects::fromHandle lookup.
- Fast Actor Tick & VM Execution: Added CLS_* class bitmasks (hasClassBit), direct classTickFunc / ickFunc dispatch, no-op Tick skipping, stack-allocated buffers for EX_StructMember / EX_StructCmpEq/Ne, and inline copyStepProperty.
- Zero-Allocation Collision & Audio: Replaced heap-allocated std::vectors in BoxLineTrace and World::lineCheck with stack buffers, eliminated duplicate hash lookups in CollisionHash::sync, cached active actors in �udio::update, and reduced TouchOverlay rendering from 45 draw calls down to 2 passes.
- ThinLTO Release Builds: Enabled -flto=thin across native C/C++ compile and link stages.
- Built-in Performance / Debug HUD:
- Added an on-screen Performance HUD (Settings -> Extra Graphics -> Performance HUD: Off / Compact / Full Debug, localized in English & Portuguese, or via console perfhud 0|1|2).
- Displays real unlocked FPS, frame time (ms), 1% low FPS, an 80-frame color-coded sparkline graph, and detailed CPU/GPU/draw-call/mesh-cache telemetry.
Call for Testing
Please test �0.4-beta across different devices and chipsets (Snapdragon/Adreno, MediaTek/Unisoc/Exynos Mali, PowerVR) and let us know in the Issues tab how the framerate feels on heavy maps like Liberty Island (1_NYC_UNATCOIsland), NYC Streets, and Hong Kong!