Left packs the data with shuffles instead of branching on if a particle is valid, and claims blocks of indices rather than one at a time.
VectorIntShuffle intrinsic has been added locally to the VectorVM and is only included for selected platforms
#rb stu.mckenna, simon.tovey
#ROBOMERGE-SOURCE: CL 10594706 via CL 10594709
#ROBOMERGE-BOT: (v607-10590470)
[CL 10594712 by rob krajcarski in Main branch]
Left packs the data with shuffles instead of branching on if a particle is valid, and claims blocks of indices rather than one at a time.
#rb stu.mckenna, simon.tovey
#ROBOMERGE-SOURCE: CL 10593082 via CL 10593089
#ROBOMERGE-BOT: (v607-10590470)
[CL 10593090 by rob krajcarski in Main branch]
#rb stu.mckenna
#ushell-cherrypick of 10103273 by john.hable
#ushell-cherrypick of 10114181 by john.hable
#ROBOMERGE-SOURCE: CL 10481339 via CL 10481342
#ROBOMERGE-BOT: (v605-10478255)
[CL 10481343 by rob krajcarski in Main branch]
- Warning is because a compare flags against a uint32 value and it assumes you should be doing an & == v which isn't correct in this instance
#rb none
#jira UE-83124
#rnx
#ROBOMERGE-SOURCE: CL 10034568 via CL 10034570
#ROBOMERGE-BOT: (v565-10026848)
[CL 10034571 by stu mckenna in Main branch]
#jira UE-83124
#rb none
#rnx
#ROBOMERGE-SOURCE: CL 10017401 via CL 10017403
#ROBOMERGE-BOT: (v562-10004402)
[CL 10017405 by stu mckenna in Main branch]
- Read ByteCode directly if unalgned loads are supported to condense 3 opts into 1 when reading a uint16
- Pre-calculate instance loops for VECTOR_WIDTH_FLOATS to avoid each vector op having to round / divide instance counts
- Added runtime optimization of the VM script, this currently boils down to a function call per VM invoke + storing the data required
- Use vm.OptimizeVMByteCode to enable optimized code generation
- Use vm.UseOptimizedVMByteCode to enable running optimized code rather the traditional byte code
[FYI] simon.tovey,rob.krajcarski,shaun.kime
#rnx
#ROBOMERGE-SOURCE: CL 9962648 via CL 9964955
#ROBOMERGE-BOT: (v560-9963197)
[CL 9965540 by stu mckenna in Main branch]
- VM is now directly fed a set of pre generated register tables from the datasets.
- Split the monolithic register table in the VM up so there are explicit I/O and temp register tables the script indexes into directly.
- Avoids some recreation of expensve objects in favour of manual reset calls.
- Re-wrote Oupt kernel to be more explicit. Going via templated handler in this case didn't get us any code reuse and just obfuscated it's workings.
Saves ~10-25us of overhead per VM involcation which soon adds up.
Saves ~1-2us inside each VM exec itself.
#rb Stu.Mckenna
#ROBOMERGE-SOURCE: CL 9743796 via CL 9743798
#ROBOMERGE-BOT: (v542-9736015)
[CL 9745804 by simon tovey in Main branch]
#rb none
[FYI] shaun.kime, arne.shober
#ROBOMERGE-SOURCE: CL 9031014 via CL 9042170 via CL 9042350
#ROBOMERGE-BOT: (v443-9013191)
[CL 9042481 by simon tovey in Main branch]
- Optimizing temp register layout for better cache usage.
- Moving VM context from TLS to pool.
#rb Stu.Mckenna, Shaun.Kime
#ROBOMERGE-OWNER: simon.tovey
#ROBOMERGE-AUTHOR: simon.tovey
#ROBOMERGE-SOURCE: CL 8886792 via CL 8886955 via CL 8889429
#ROBOMERGE-BOT: (v427-8887818)
[CL 8890014 by simon tovey in Main branch]
- Moves Niagara tick work into tick function in LastDemotable. In future CL we can push other work into earlier tick groups.
- Can now optioally push system simulation work off the GT.
- Can now optionally push system instance tick work off the GT in batches. Currently of 8.
- Refactor of system simulation code to be far more clear and maintainable.
- Modified spawn flow to facilitate ticking inside main world tick. Now we spawn all our new systems at the end of the frames actor ticking so we catch any new systems spwaned during the frame.
- Various infrastructure changes to support the above.
- Misc:
Changed some checks to check slow.
Fixed a UI crash
Removed VM stat scope that was too granular.
Moved some static functions relating to the world manager actually into the world manager rather than in the NiagaraModule
#rb Shaun.kime
#ROBOMERGE-SOURCE: CL 8210774 via CL 8212467
#ROBOMERGE-BOT: (v401-8057353)
[CL 8212517 by simon tovey in Main branch]
Turn on via vm.DetailedVMScriptStats
#rb Shaun.kime
#ROBOMERGE-SOURCE: CL 8008309 via CL 8014925
#ROBOMERGE-BOT: (v396-7974030)
[CL 8015123 by simon tovey in Main branch]
Fix for ExecutionState crash with many emitters.
[FYI] Stu.Mckenna
#rb none
#ROBOMERGE-SOURCE: CL 6676038 via CL 6678350
#ROBOMERGE-BOT: (v363-6677109)
[CL 6678803 by shaun kime in Main branch]
Adding a lock around places that modify the free table.
Keeping thread local array of IDs to free to minimize locks.
Modified free table allocation. Previously size could be insuffiicient in some cases.
#rb Shaun.Kime
#jira UE-59768
#ROBOMERGE-SOURCE: CL 4512863 in //UE4/Release-4.21/...
#ROBOMERGE-BOT: RELEASE (Release-4.21 -> Release-Staging-4.21)
[CL 4512865 by simon tovey in Staging-4.21 branch]