- Emil Persson @Humus
- Matt Pettineo @mynameismjp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================================= | |
| # unityinstall.ps1 | |
| # ----------------------------------------------------------------------------- | |
| # Hub-less Windows install of: | |
| # • Unity Editor (Windows) + Windows IL2CPP + Linux IL2CPP | |
| # • Android Support module for the Editor | |
| # • Android toolchain: Microsoft OpenJDK 17, Android SDK (cmdline-tools, platform-tools, | |
| # build-tools 36.0.0, platform android-36), and NDK r27c | |
| # • Developer CLIs: AWS CLI v2, Git for Windows (Git Bash), jq (to C:\Windows\System32) | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Hack the method AddContinuation the file PlayerLoopHelper.cs | |
| public static void AddContinuation(PlayerLoopTiming timing, Action continuation) | |
| { | |
| var context = SynchronizationContext.Current; | |
| if (context != null && context != unitySynchronizationContext) | |
| { | |
| context.Post(_ => continuation(), null); | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma warning disable CS1591 | |
| using Cysharp.Threading.Tasks.Internal; | |
| using System; | |
| using System.Linq; | |
| using System.Diagnostics; | |
| using System.Runtime.CompilerServices; | |
| using Unity.Profiling; | |
| namespace Cysharp.Threading.Tasks.CompilerServices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Concurrent; | |
| using System.Runtime.InteropServices; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| BenchmarkRunner.Run<Benchmarks>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if UNITY_BURST_FEATURE_FUNCPTR | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.Reflection.Emit; | |
| using System.Runtime.InteropServices; | |
| using Unity.Burst; | |
| namespace BurstHelper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void SetupEnginesAndEntities() | |
| { | |
| //The Engines Root is the core of Svelto.ECS. You must NEVER inject the EngineRoot | |
| //as it is, therefore the composition root must hold a reference or it will be | |
| //GCed. | |
| //the UnitySumbmissionEntityViewScheduler is the scheduler that is used by the EnginesRoot to know | |
| //when to inject the EntityViews. You shouldn't use a custom one unless you know what you | |
| //are doing or you are not working with Unity. | |
| _enginesRoot = new EnginesRoot(new UnitySumbmissionEntityViewScheduler()); | |
| //Engines root can never be held by anything else than the context itself to avoid leaks |