Commit Graph

5061 Commits

Author SHA1 Message Date
mafiesto4 aeff147b6d Optimize and refactor DDGI to use linear attention per-probe to dynamically control ray count and blend speed
Probes will use lower ray count when behind the camera or not correlated with the view direction or far from geometry.
Probes nearby camera or with high instability in irradiance will maintain higher ray count.
Probes that use less rays will have slower blending to reduce artifacts.
Added probe instability, attention and stats debugging for devs.
2024-07-18 08:38:23 +02:00
mafiesto4 ee02aa394a Fix potential error in new shadows atlas rendering 2024-07-18 00:17:33 +02:00
mafiesto4 8ba33d9d10 Fix typo in doc comment 2024-07-18 00:17:15 +02:00
mafiesto4 13cf3deb3f Revert b80101411f 2024-07-12 18:42:19 +02:00
mafiesto4 74dfa30556 Fix crash when drawing particle effect where one of the emitter assets is not yet loaded 2024-07-12 17:14:51 +02:00
mafiesto4 793afff0aa Merge remote-tracking branch 'origin/1.9' into 1.9 2024-07-12 17:05:18 +02:00
mafiesto4 b80101411f Optimize Vulkan Memory Allocator to not use mutex as it's synced by engine to safely access resources 2024-07-12 17:05:07 +02:00
mafiesto4 e83097d114 Fix missing memory allocator for Vulkan Memory Allocator 2024-07-12 17:04:23 +02:00
mafiesto4 352913ba14 Add random per-probe rotation for rays tracing in DDGI 2024-07-11 14:48:24 +02:00
mafiesto4 dbda31d570 Add timeBeginPeriod(1) on Win32 platforms to improve timer precision 2024-07-10 15:34:38 +02:00
mafiesto4 d521409033 Missing change for particles from 6b06f1dbcf 2024-07-10 13:58:01 +02:00
mafiesto4 6b06f1dbcf Optimize Global SDF to use 8-bit storage (50% less memory usage) 2024-07-10 13:22:25 +02:00
mafiesto4 ffddbb455f Add Scripting events to C++ api similar to C# ones 2024-07-09 11:57:41 +02:00
mafiesto4 d5dd8e7ecf Optimize GlobalSurfaceAtlasPass tiles by sorting by size before inserting them into atlas 2024-07-08 16:43:26 +02:00
mafiesto4 082a5819cd Optimize GlobalSurfaceAtlasPass by ignoring GBuffer2 properties (diffuse-only surfaces) 2024-07-08 16:40:59 +02:00
mafiesto4 bee39dda58 Fix commandline options in build 2024-07-06 12:57:19 +02:00
mafiesto4 559cd74647 Merge remote-tracking branch 'origin/master' into 1.9
# Conflicts:
#	Source/Engine/Audio/Audio.cpp
2024-07-05 22:18:40 +02:00
mafiesto4 d1e54b821b Fix asset to be soft when transformation is nan or inf
#2742
2024-07-04 18:05:47 +02:00
mafiesto4 230c57cca4 Add WinPixEventRuntime for D3D12 to provide GPU profiler event names 2024-07-03 18:30:11 +02:00
mafiesto4 b8100e9417 Fix missing GPU events when using shaders profiling/debugging or graphics dev tools are enabled 2024-07-03 18:29:42 +02:00
mafiesto4 b3d77ab9eb Add shaders profiling console command 2024-07-03 13:22:19 +02:00
mafiesto4 030a66c091 Add shader cache invalidation when using debug shader option via cmd line in Editor 2024-07-03 12:41:29 +02:00
mafiesto4 00a9c48fec Optimize probes count multiplication in DDGI shader 2024-07-03 08:51:58 +02:00
mafiesto4 6fbf4a6aac Optimize draw calls sorting and objects buffer building to be async 2024-07-02 16:07:09 +02:00
mafiesto4 e18b059234 Merge branch 'unsafeaccessor_init' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-unsafeaccessor_init 2024-07-02 10:04:00 +02:00
mafiesto4 1b72b14376 Merge branch 'AudioListenerWarning' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-AudioListenerWarning 2024-07-02 10:01:39 +02:00
mafiesto4 ec510425a1 Merge branch 'update_assimp' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-update_assimp 2024-07-02 09:12:27 +02:00
mafiesto4 ddfaeddb5f Merge branch 'wrap-on-underscore' of https://github.com/Tryibion/FlaxEngine into Tryibion-wrap-on-underscore 2024-07-02 09:10:37 +02:00
mafiesto4 567d5f70ab Merge remote-tracking branch 'origin/1.9' into 1.9 2024-07-02 00:58:25 +02:00
mafiesto4 fe0711c3e2 Fix D3D11 to properly flush CB/SRVs when bindings new shaders after CB/SRV was set 2024-07-02 00:55:41 +02:00
mafiesto4 9486466abf Fix D3D11 to properly issue instanced draws even if instance count is 1 2024-07-02 00:54:49 +02:00
mafiesto4 1328e869a9 Fix crash in D3D12 when constant buffer was binded but not updated before the draw 2024-07-02 00:54:17 +02:00
mafiesto4 fbc648302d Fix timer queries reset before use on Vulkan 2024-07-02 00:53:45 +02:00
mafiesto4 ef129a3135 Add frustum culling for editor preview camera mesh 2024-07-02 00:53:03 +02:00
mafiesto4 08ef7c93ea Refactor draw calls drawing to use single objects buffer and better materials batching 2024-07-02 00:52:22 +02:00
GoaLitiuM d56493da54 Use UnsafeAccessor to initialize scripting object interop fields 2024-06-30 15:52:14 +03:00
mafiesto4 78f3248ac9 Refactor SortOrder to use int8 instead of int16 due to performance reasons (more efficent sort keys packing in rendering) 2024-06-29 13:54:02 +02:00
mafiesto4 516ed3e9a0 Cleanup some rendering code 2024-06-28 21:21:17 +02:00
mafiesto4 f4d4969650 Merge branch '1.9' of https://gitlab.flaxengine.com/flax/flaxengine into 1.9 2024-06-28 09:52:06 +02:00
mafiesto4 dbbc2b70bf Disable GlobalSurfaceAtlas on Mac due to GPU crashes in larges scenes 2024-06-28 09:43:18 +02:00
mafiesto4 e265b760c1 USe local var to simplify code and fix MaterialShaderDataPerView struct to use new alignment for constant buffers data 2024-06-28 08:50:14 +02:00
mafiesto4 138e17508b Add profile event to hardware instancing building and insert draw count into profiler zone data 2024-06-27 21:03:52 +02:00
mafiesto4 7b5edc363a Fix GLobalSDF update when not using workload spread and add dispatches count to profiler zone data 2024-06-27 09:29:09 +02:00
mafiesto4 8eaa635385 Minor tweaks to GlobalSA 2024-06-26 18:19:48 +02:00
mafiesto4 91d3216a00 Fix crash on shutdown when physical material asset was left alone 2024-06-26 18:19:36 +02:00
mafiesto4 18c3f274f8 Optimize Global SDF drawing with async job system 2024-06-26 18:16:58 +02:00
mafiesto4 b545d8800c Optimize job system memory allocations 2024-06-24 23:19:01 +02:00
mafiesto4 3bbaa8dad0 Remove unused job system stats and concurrent queue code 2024-06-24 19:02:38 +02:00
mafiesto4 a1c251c3b7 Add various optimizations to Global Surface Atlas 2024-06-24 19:01:35 +02:00
mafiesto4 8190d7f171 Optimize Global Surface Atlas setup and objects buffer writing to be async 2024-06-24 13:15:45 +02:00