update client visuals, performance and diagnostics

This commit is contained in:
st committed 2026-10-14 23:30:29 -05:00
1 parent 361892bf0b
commit 875bab0310
155 files changed
+40855 -421

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
# Atmosphere world visuals
Visual -> atmosphere keeps the existing module ID, fog/world colors and night
mode. New settings autosave in the existing profile system.
Choose a look preset, press apply selected look, then enable atmosphere:
- neon dusk: purple fog, rich saturation, violet shadows and pink highlights
- vaporwave: cycling pink/cyan palette, colored fog and soft bloom
- frost: pale blue grading, desaturation and cosmetic snow
- ember: warm highlights, purple shadows, amber fog and subtle grain
- golden hour: warm light, cooler shadows and brighter bloom
- noir: monochrome contrast, grain and cosmetic rain
- dreamscape: soft contrast, pastel fog and bloom
Applying a preset updates ordinary settings. All values remain editable; presets
are not reapplied each frame. Reset restores neutral grading and the original
fog defaults. Disabling restores native fog and disables the GPU effects pass.
Controls: exposure, contrast, saturation, shadow/highlight RGB + blend alpha,
world tint + alpha, fog RGB + alpha, night darkness, bloom/threshold, vignette,
chromatic offset, grain, two-color/rainbow palette animation and speed, optional
animated fog, rain/snow density and weather speed, weather renderer, radius, wind and colors.
The postprocess is a single D3D11 fullscreen pass. Bloom samples bright neighbors
only when enabled; chromatic offset adds samples only when enabled. Effects run
in active gameplay with the cursor hidden and ClickGUI closed. Client HUD/GUI
are drawn afterward. This screen-space pass includes Minecraft's own already
rendered UI; screen-overlay rain/snow remain available as a fallback. The default world
renderer draws custom camera-projected particles at world locations using
instanced streak/flake shaders and the native depth buffer with depth writes
disabled. It recognizes standard/reversed perspective matrices matching the
current FOV; if depth/projection cannot be verified, it skips drawing and
reports a waiting notification. Projection coefficients are read from the native camera matrix and normalized
from its OpenGL depth range to D3D11. FOV, matrix shape and the near plane are
validated against the live 26.52 GPU projection recovered during diagnosis.
CPU-side constant-buffer uploads remain an alternate observation path (Map/Unmap, UpdateSubresource and UpdateSubresource1); no GPU-buffer
copy/readback is used. World weather explicitly restores all changed D3D11 state
and leaves native targets/UAV bindings untouched. It never swaps or clears
the game context and only draws on the Present thread. Precipitation does not
yet check block columns for roofs and can spawn inside covered areas. Neither
renderer changes real weather. Native fog uses the existing verified dimension fog hook.
No fake world-time changes, packets or server-state writes are introduced.
Verification uses actual WARP shader execution and pixel readback for neutral
legacy tint/darkness, grayscale, vignette and split tones, all seven presets,
animated-palette changes and reset/disable. Existing tests cover fog isolation
and full D3D11 render-state restoration. A synthetic scene contact sheet renders
the real GPU pass; it is a shader preview, not a screenshot of Minecraft.
Live validation on 26.52: status 4 with an increasing draw count and projection
source 3 confirms the graphics boundary is drawing with the converted native
camera projection. The earlier graphics readback/context-state path was removed
after an NVIDIA-driver crash. Both the WARP and hardware tests now exercise
explicit state preservation, standard/reversed depth occlusion, camera motion
and projection conversion. Final particle appearance requires the user's visual
confirmation; draw counters alone do not establish visual quality.