Commit Graph

277 Commits

Author SHA1 Message Date
ben woodhouse
2ea61ce0c6 Switch to CSV_PROFILER_STATS instead of CSV_PROFILER for various profiling subsystems. This allows them to be compiled out when CSV_PROFILER_MINIMAL is defined.
As part of this change we also promote dynamic resolution and IO/PackageQueueDepth stats to Minimal since they're important for high level performance reporting.
Also fix up a few places that were redundantly using #if CSV_PROFILER around CSV macros.

#rb mickael.gilabert

[CL 34386798 by ben woodhouse in ue5-main branch]
2024-06-14 18:16:47 -04:00
sergio gardeazabal
378d747dec [ChaosVD] Initial implementation to add support to record and visualize game thread acceleration structures
This CL adds only AABB Tree are support

In addition as part of this change

- Added a way to generate a struct view that can be fed to the vanilla details panel for Solver Data structs. CVD solver data usually consist of a main struct that can contain several substructs in containers. When we select something in the viewport, we usually want to see the data in the parent struct and then some specific items in the containers.
Until now for these cases we created dedicated details panels with added functionality to interact with the data. But there are cases where we just want to see the struct data. Now for these cases we can just use this struct view API in the CVD Selection handle system to use the normal CVD's details panel.
- Added a way to allow CVD's main details panel to ignore struct types (needed to ignore structs that have their own data inspector widgets).
-Fixed an issue with CVD's Details panel where if you try to inspect a struct after uobject was inspected, the uobject details view was not being properly cleared out and hidden

#jira UE-216082, FORT-745804

#rb Benn.Gallagher

[CL 34084863 by sergio gardeazabal in ue5-main branch]
2024-06-03 23:24:37 -04:00
brandon schaefer
d1becd40a2 Remove the now deleted option to EnableAutoRTFM, this is default and now youve to explicitly disable it for a module
#rb neil.henning

[CL 34015057 by brandon schaefer in ue5-main branch]
2024-05-30 18:00:50 -04:00
chris caulfield
01bb59b751 Fix use of HitResult and OverlapResult in LatentActions when using verse
#rb Benn.Gallagher, kristoffer.jonsson

[CL 33903639 by chris caulfield in ue5-main branch]
2024-05-24 15:50:38 -04:00
chris caulfield
2b4c22e916 Add FBodyInstance::GetBodyBoundsLocal
#rb Benn.Gallagher, cedric.caillaud

[CL 33740254 by chris caulfield in ue5-main branch]
2024-05-17 18:24:47 -04:00
chris caulfield
05ad138d9d [Backout] - CL33567582
[FYI] edwin.maynard
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL33567068 (backed out due to compile error)
[FYI] Chris.Caulfield
Original CL Desc
-----------------------------------------------------------------
Chaos Debug Draw
- add debug draw subsystem
- add DD timeline to game thread
- move all new DD stuff out of ChaosDebugDrawComponent (it can be deleted later)

#rb Benn.Gallagher

[CL 33569703 by chris caulfield in ue5-main branch]
2024-05-10 00:39:11 -04:00
edwin maynard
708aa692b9 [Backout] - CL33567068
[FYI] Chris.Caulfield
Original CL Desc
-----------------------------------------------------------------
Chaos Debug Draw
- add debug draw subsystem
- add DD timeline to game thread
- move all new DD stuff out of ChaosDebugDrawComponent (it can be deleted later)

#rb Benn.Gallagher

[CL 33567677 by edwin maynard in ue5-main branch]
2024-05-09 21:55:10 -04:00
chris caulfield
c07941d521 Chaos Debug Draw
- add debug draw subsystem
- add DD timeline to game thread
- move all new DD stuff out of ChaosDebugDrawComponent (it can be deleted later)

#rb Benn.Gallagher

[CL 33567161 by chris caulfield in ue5-main branch]
2024-05-09 21:29:45 -04:00
chris caulfield
39a382d104 Chaos - new debug draw backend to handle debugdraw from async phsyics
Work in progress. Debug draw from the physics thread now works correctlyl Still need to add debug draw context to ParallelFor and Tasks. Also RBANs need their own timeline and begin/end frame sequence. If the debug draw context is not set up on a thread it falls back to the original global singleton mechanism.

#rb Benn.Gallagher

[CL 33356155 by chris caulfield in ue5-main branch]
2024-04-30 17:58:46 -04:00
chris caulfield
40a7684c5a Chaos - fix joint angle reporting on game thread
#jira UE-158863
#rb Benn.Gallagher, vincent.robert

[CL 33171482 by chris caulfield in ue5-main branch]
2024-04-23 12:26:26 -04:00
steve robb
d5a12c0eff Initialized some FVector variables that were potentially uninitialized.
#jira UE-87511

[CL 32982763 by steve robb in ue5-main branch]
2024-04-15 21:30:40 -04:00
steve robb
d7209b821e Removed unused variables in Chaos.
Fixed uninitialized members in TSQVisitor.

#jira UE-87511

[CL 32981146 by steve robb in ue5-main branch]
2024-04-15 20:32:06 -04:00
michael bao
6c488fd0a5 TSQVisitor needs to initialize HitFaceNormal in all constructors
[CL 32495570 by michael bao in ue5-main branch]
2024-03-25 23:17:35 -04:00
chris caulfield
64c6d759ec Chaos - set solver config before the first Advance
Any particles that exist in the scene at the start were not seeing the correct settings.

#rb Benn.Gallagher

[CL 32404597 by chris caulfield in ue5-main branch]
2024-03-21 12:56:59 -04:00
steve robb
8517c776db Added UE_DEPRECATED_HEADER which acts like UE_DEPRECATED and should be placed in headers that should no longer be included.
#rb devin.doucette

[CL 32297380 by steve robb in ue5-main branch]
2024-03-18 07:05:59 -04:00
jaco vandyk
ee93804f17 Chaos User Entity now includes a virtual destructor to support user entity destruct from a base class pointer
#rb Benn.Gallagher
#[fyi] Benn.Gallagher

[CL 32151477 by jaco vandyk in ue5-main branch]
2024-03-11 07:13:42 -04:00
chris caulfield
b4488c2f8b Chaos - add FBodyInstance::bUseMACD flag to enable Motion-Aware Collision Detection per particle
- flag is also used by GeomrteyCollections
- wire flag through to Chaos particles in the ControlFlags structure

NOTE: this flag isn't actually being used yet. It will be connected to the MACD feature in an upcoming change.

#rb Benn.Gallagher

[CL 31588117 by chris caulfield in ue5-main branch]
2024-02-16 19:01:12 -05:00
chris caulfield
b80ef64885 Chaos
- shape bounds are now tight-fitting (particle bounds are still padded by cull distance and some fraction of movement)
- debugdraw pre/post integrate shapes
- improve evolution test mode (for reproducible visual collision detection tests)
- move integrate to cpp file to reduce compilation

#rb Benn.Gallagher, vincent.robert

[CL 31484609 by chris caulfield in ue5-main branch]
2024-02-14 13:36:39 -05:00
vincent robert
c1896a41bd Make consistent API by using GetX, SetX, GetP and SetP for physics particles
#jira UE-202397, PLAY-14685
#rb chris.caulfield, alex.mcadams, cedric.caillaud

[CL 31383921 by vincent robert in ue5-main branch]
2024-02-12 11:12:22 -05:00
jaco vandyk
588a378139 Custom Entities can now be attached to Physics Particles and returned in queries
#rb Benn.Gallagher
#[fyi] Benn.Gallagher
#jira UE-186290

[CL 31336343 by jaco vandyk in ue5-main branch]
2024-02-09 08:18:37 -05:00
steven barnett
4ed18e34f8 Change "CVars" namespace to "PhysicalMaterialCVars" to avoid name conflicts
#jira UE-206036

#changelist validated
#virtualized

[CL 31244499 by steven barnett in ue5-main branch]
2024-02-06 21:19:02 -05:00
steven barnett
f11eed6059 Add soft collision thickness and sticky friction
#rb Chris.Caulfield, benn.gallagher

#changelist validated
#virtualized

[CL 31243694 by steven barnett in ue5-main branch]
2024-02-06 20:40:28 -05:00
sergio gardeazabal
95ccb7f03c [ChaosVD] Added Optional CVD Data Channels. This allows opt out of recording some types of data (like specific solver steps, or scene queries).
Also moved most CVD macros to its own file.

The new Data Channels can be enabled/disabled via CVD's Editor interface, commandline argument, or console command

#jira UE-187249
#rb Benn.Gallagher

#changelist validated
#virtualized

[CL 31233456 by sergio gardeazabal in ue5-main branch]
2024-02-06 17:23:49 -05:00
edwin maynard
4ca314b447 [Backout] - CL31216640 (backed out due to compile errors)
[FYI] Steven.Barnett
Original CL Desc
-----------------------------------------------------------------
Add soft collision thickness and sticky friction

#rb Benn.Gallagher, Chris.Caulfield

#changelist validated
#virtualized

[CL 31219619 by edwin maynard in ue5-main branch]
2024-02-06 12:37:00 -05:00
steven barnett
3a1992c0d3 Add soft collision thickness and sticky friction
#rb Benn.Gallagher, Chris.Caulfield

#changelist validated
#virtualized

[CL 31218280 by steven barnett in ue5-main branch]
2024-02-06 12:06:07 -05:00