userFelixcancel

730 Commits over 608 Days - 0.05cph!

8 Months Ago
CodeGen
8 Months Ago
Rebase on /main
8 Months Ago
Rebase on /main
8 Months Ago
- Create buffers with correct flags according to `buffer_upload_mode` - Set default buffer upload mode to be "indirect" (1) - Disallow changing `buffer_upload_mode` during gameplay
8 Months Ago
un-gate indirect instancing for testing purposes
8 Months Ago
Fix build by scrapping the function pointer idea.
8 Months Ago
Fix typo
8 Months Ago
- Fix rendering issues due to various jobs executing for command indices that are no longer in use. - Fix broken debug draw when damage region bitscan job is active. - Split `surviving_command_counts` into `command_counts_after_culling` and `command_counts_after_reordering` for clarity. - Create a universal IsCallVisible() function instead of the mess we had before
8 Months Ago
- Rewrite the buffer update logic to ensure a direct update only happens once per frame to make DX11 happy. - Always update the entire buffer to make greedy GPU drivers happy. - Add IGraphicsBuffer wrapper because Unity didn't do it so I can finally stop copy/pasting everything. - Use a function pointer (👻) in damage region processing for similar reasions. - Unlock the arrays in Update in case OnPreCull wasn't called. - New debugging ConVars: `reorder_instances_job`, `damage_bitscan_job` and `buffer_upload_mode`
8 Months Ago
A whole marathon of Indirect Instancing changes: - Schedule all jobs at the beginning of LateUpdate() for better worker utilisation. - Further improve scheduling behavior by modeling actual dependencies between jobs using writes_to_* and reads_from_* handles. - Allow instance reordering and command aggregation to run in paralell to give even more flexibility to the scheduler. - Run the debug overlay (where possible) in parallel with the jobs to improve performance - Avoid garbage allocation when scheduling the frustum culling job. (GeometryUtility.CalculateFrustumPlanes) - Schedule all jobs using ScheduleByRef. - Correctly set `[ReadOnly]` and `readonly` for all jobs to help Burst as much as possible. - Make batch size tunable: `indirect_instancing.batches_per_worker` - Add somewhat automatic instrumentation to CrudeProfiler via `using` statements. - Add ProfilerMarker to mimic what Unity 6 is doing with `using` statements. (Still need to verify it this compiles out properly.) - Add more profiler instrumentation. - Rename a ton of things for clarity. - Remove CommandBuffer. We won't need it where we're going.
8 Months Ago
Some cleanups
8 Months Ago
Fix burst compile issues by bringing back `DamageRegion` struct
8 Months Ago
Jobify the damage region scanning for instance data
8 Months Ago
First implementation of hybrid monster meshes
8 Months Ago
Merge from /indirect_instancing/layers
8 Months Ago
Slightly optimise command reordering
8 Months Ago
Jobified instance reordering
8 Months Ago
▅ ▇▅▊█▋▉▌▆ ▌▄██▇▌▇▍ ▆▄▊█▍▍▉▍▉▌ ▅▆▉▇▌██ ▆▆ █▋▄▇▍ ▍▊▊▋▄▍ ▊▅▄▄▄
8 Months Ago
Merge bitmapped_damage_tracking → indirect_instancing
8 Months Ago
Implement bitmapped damage tracking
8 Months Ago
Rebase on current /indirect_instancing
8 Months Ago
Clean up some failed experiments
8 Months Ago
Fix nothing rendering for real this time.
8 Months Ago
Fix nothing actually rendering with new Graphics.DrawMeshInstancedIndirect based draw call submission
8 Months Ago
Fix NRE in Indirect Instancing debug overlay
8 Months Ago
Add agressive optimisation attributes to the hot path of Indirect Instancing.
8 Months Ago
Rebase on /main (save 271)
8 Months Ago
Regenerate ConVars and force bounds to be always huge (experiment)
8 Months Ago
Add a third submission mode to indirect instancing which works through `Graphics.DrawMeshInstancedIndirect` and avoids copying to a command buffer. Enable `indirect_instancing.command_buffer` to switch back to the old way.
8 Months Ago
Finalise SIMD terrain culling implementation: - Fix oscillation/flicker bug by tracking individual ray progress properly. - Adjust step size dynamically with altitude to reduce iterations. - Limit overall iterations to ConVar `indirect_instancing.tc_max_iterations`. - Ignore rays to instances that have been culled in a previous step.
8 Months Ago
Add more debug output to the indirect_instancing.debug overlay
8 Months Ago
Add new SIMD terrain culling implementation (WIP) providing ~3x speedup (up to 30x in certain cases)
8 Months Ago
Only allow StartMotion() when IsDynamic is set
9 Months Ago
Rebase on /main
9 Months Ago
Speed up motion list execution 30x by caching matrices and checking them for changes.
9 Months Ago
Rebase on /main
9 Months Ago
Rebase on /main
9 Months Ago
Regenerate ConsoleSystem.cs
9 Months Ago
Regenerate ConsoleSystem.cs
9 Months Ago
Merge other fixes from /indirect_instancing
9 Months Ago
Rebase on /main
9 Months Ago
Merge build fix from /indirect_instancing_fixes
9 Months Ago
Restore constant that I removed because I was an idiot.
9 Months Ago
Merge from /indirect_instancing_fixes
9 Months Ago
Rebase on /main
9 Months Ago
Fix multiple issues with LOD bounds/distance calculations: - Never return zero-bounds for anything, try multiple things and fall back to 1 m³ as a last resort. - Always use bounds (and center) of LOD0 for consensus between LOD states. - Fix fallback renderer using transform position instead of bounds center for distance calculations.
9 Months Ago
Fix Radtown sign by manually disabling mipmap streaming.
9 Months Ago
Properly fix brightness flicker by using a GlobalKeyword instead of a string
9 Months Ago
Add preliminary support for layers to indirect instancing
9 Months Ago
Fixed brightness flickering on indirect instancing objects when moving camera (inefficient variant)