From a0a5c233b856ca1259784e05e53bf0e5aee8d3be Mon Sep 17 00:00:00 2001 From: 7ubi Date: Sun, 9 May 2021 22:19:58 +0200 Subject: [PATCH] -Infinite World generation -Player Movement changes --- Assets/Player.physicMaterial | 14 + Assets/Player.physicMaterial.meta | 8 + Assets/Scenes/SampleScene.unity | 17 +- Assets/Scripts/PlayerController.cs | 18 +- Assets/Scripts/world_creation.cs | 73 +++- Logs/AssetImportWorker0.log | 473 +++++++++++++++++++++ Logs/shadercompiler-AssetImportWorker0.log | 3 + 7 files changed, 576 insertions(+), 30 deletions(-) create mode 100644 Assets/Player.physicMaterial create mode 100644 Assets/Player.physicMaterial.meta create mode 100644 Logs/AssetImportWorker0.log create mode 100644 Logs/shadercompiler-AssetImportWorker0.log diff --git a/Assets/Player.physicMaterial b/Assets/Player.physicMaterial new file mode 100644 index 0000000..9f0978f --- /dev/null +++ b/Assets/Player.physicMaterial @@ -0,0 +1,14 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!134 &13400000 +PhysicMaterial: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Player + dynamicFriction: 1 + staticFriction: 1 + bounciness: 0 + frictionCombine: 0 + bounceCombine: 0 diff --git a/Assets/Player.physicMaterial.meta b/Assets/Player.physicMaterial.meta new file mode 100644 index 0000000..3a673ec --- /dev/null +++ b/Assets/Player.physicMaterial.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 54b0ea5ba996ad447b7c81656f7a508c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 13400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index f9eae22..902ebf9 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -333,6 +333,8 @@ MonoBehaviour: maxHeight: 15 seed: 69 Chunck: {fileID: 8451236987504973569, guid: 320c3e7c5fc352247932ecdea37a94a4, type: 3} + renderDistance: 6 + Player: {fileID: 1743702924} --- !u!4 &1731320883 Transform: m_ObjectHideFlags: 0 @@ -358,9 +360,9 @@ GameObject: - component: {fileID: 1743702928} - component: {fileID: 1743702927} - component: {fileID: 1743702926} - - component: {fileID: 1743702925} - component: {fileID: 1743702929} - component: {fileID: 1743702930} + - component: {fileID: 1743702925} m_Layer: 0 m_Name: Player m_TagString: Untagged @@ -368,19 +370,18 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!136 &1743702925 -CapsuleCollider: +--- !u!65 &1743702925 +BoxCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1743702924} - m_Material: {fileID: 0} + m_Material: {fileID: 13400000, guid: 54b0ea5ba996ad447b7c81656f7a508c, type: 2} m_IsTrigger: 0 m_Enabled: 1 - m_Radius: 0.5 - m_Height: 2 - m_Direction: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 2, z: 1} m_Center: {x: 0, y: 0, z: 0} --- !u!23 &1743702926 MeshRenderer: @@ -475,7 +476,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 74bd70de0451f3c41bcc93f80c2062ea, type: 3} m_Name: m_EditorClassIdentifier: - moveSpeed: 5 + moveSpeed: 4 _camera: {fileID: 963194227} speedH: 2 speedV: 2 diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index c5c3197..174e237 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -1,3 +1,4 @@ +using System; using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -10,6 +11,9 @@ public class PlayerController : MonoBehaviour [SerializeField] private float speedV = 2.0f; [SerializeField] private float jumpForce; + private float forward; + private float right; + private float _yaw = 0.0f; private float _pitch = 0.0f; @@ -24,9 +28,8 @@ private void Start() private void Update() { - var forward = Input.GetAxis("Vertical") * moveSpeed; - var right = Input.GetAxis("Horizontal") * moveSpeed; - transform.position += transform.forward * (forward * Time.deltaTime) + transform.right * (right * Time.deltaTime); + forward = Input.GetAxis("Vertical") * moveSpeed; + right = Input.GetAxis("Horizontal") * moveSpeed; var mouseRight = Input.GetAxis("Mouse X"); var mouseUp = Input.GetAxis("Mouse Y"); @@ -46,4 +49,13 @@ private void Update() if (Input.GetKey(KeyCode.Space) && _rb.velocity.y == 0) _rb.velocity = new Vector3(_rb.velocity.x, jumpForce, _rb.velocity.z); } + + private void LateUpdate() + { + var velocity = _rb.velocity; + var yVel = velocity.y; + velocity = transform.forward * forward + transform.right * right; + velocity = new Vector3(velocity.x, yVel, velocity.z); + _rb.velocity = velocity; + } } diff --git a/Assets/Scripts/world_creation.cs b/Assets/Scripts/world_creation.cs index b932c10..a61fe38 100644 --- a/Assets/Scripts/world_creation.cs +++ b/Assets/Scripts/world_creation.cs @@ -1,6 +1,8 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography; using UnityEngine; public class world_creation : MonoBehaviour @@ -8,24 +10,31 @@ public class world_creation : MonoBehaviour //base code: https://github.com/Absurdponcho/BlockGame/blob/master/Assets/VoxelChunk.cs [SerializeField] int Size = 16; [SerializeField] private int maxHeight; - public short[,,] BlockIDs; - private bool RequiresMeshGeneration = false; + private short[,,] BlockIDs; + [SerializeField] private int seed; [SerializeField] private GameObject Chunck; + [SerializeField] private float renderDistance; + [SerializeField] private GameObject Player; + private List chuncks = new List(); + private int _lastChunck = 0; + private void Start() + { + GenerateChunck(); + } + private void Update() { - if (RequiresMeshGeneration) + var position = Vector3Int.FloorToInt(Player.transform.position); + var currentChunck = (position.x - (position.x % 8) + position.z - (position.z % 8)); + if (currentChunck != _lastChunck) { GenerateChunck(); } - } - private void Start() - { - - RequiresMeshGeneration = true; + _lastChunck = currentChunck; } void GenerateBlocks(Vector2 offset) @@ -35,7 +44,7 @@ void GenerateBlocks(Vector2 offset) { for (var z = 0; z < Size; z++) { - var height = (int)(Mathf.PerlinNoise((x + offset.x * 2) * 0.05f + seed, (z + offset.y * 2) * 0.05f + seed) * (maxHeight)); + var height = (int)(Mathf.PerlinNoise((x + offset.x) * 0.05f + seed, (z + offset.y) * 0.05f + seed) * (maxHeight)); for(var y = height; y >= 0; y--){ BlockIDs[x, y, z] = 1; } @@ -44,20 +53,49 @@ void GenerateBlocks(Vector2 offset) } } - void GenerateChunck() + private void GenerateChunck() { - for (var x = 0; x < 3; x++) + var position = Player.transform.position; + var playerX = position.x - (position.x % 16); + var playerZ = position.z - (position.z % 16); + + var minX = Convert.ToInt32(playerX - Size * renderDistance); + var maxX = Convert.ToInt32(playerX + Size * renderDistance); + var minZ = Convert.ToInt32(playerZ - Size * renderDistance); + var maxZ = Convert.ToInt32(playerZ + Size * renderDistance); + + for (var x = minX; x <= maxX; x += Size) { - for (var z = 0; z < 3; z++) + for (var z = minZ; z <= maxZ; z += Size) { - var chunck = Instantiate(Chunck, new Vector3(x * Size * 0.5f, 0, z * Size * 0.5f), Quaternion.identity); - GenerateMesh(chunck); + var exists = chuncks.Any(chunck => + { + Vector3 position1; + return Math.Abs((float) ((position1 = chunck.transform.position).x - x)) < 0.1f && Math.Abs((float) (position1.z - z)) < 0.1f; + }); + + if (exists) continue; + var newChunck = Instantiate(Chunck, new Vector3(x, 0, z), Quaternion.identity); + GenerateMesh(newChunck); + chuncks.Add(newChunck); } } + + if(chuncks.Count == 0) + return; + + for(var i = chuncks.Count - 1; i >= 0; i--) + { + var chunck = chuncks[i]; + if (!(chunck.transform.position.x < minX) && !(chunck.transform.position.x > maxX) && + !(chunck.transform.position.z < minZ) && !(chunck.transform.position.z > maxZ)) continue; + chuncks.Remove(chunck); + Destroy(chunck); + } } // ReSharper disable Unity.PerformanceAnalysis - void GenerateMesh(GameObject chunck) + private void GenerateMesh(GameObject chunck) { var position = chunck.transform.position; GenerateBlocks(new Vector2(position.x, position.z)); @@ -75,7 +113,7 @@ void GenerateMesh(GameObject chunck) { for (var z = 0; z < Size; z++) { - var offset = new Vector3Int(x, y, z) + Vector3Int.FloorToInt(chunck.transform.position); + var offset = new Vector3Int(x, y, z); if (BlockIDs[x, y, z] == 0) continue; else { @@ -163,9 +201,6 @@ void GenerateMesh(GameObject chunck) newMesh.RecalculateTangents(); chunck.GetComponent().mesh = newMesh; chunck.GetComponent().sharedMesh = newMesh; - // Set texture - - RequiresMeshGeneration = false; } void GenerateBlock_Top(ref int currentIndex, Vector3Int offset, List vertices, List normals, List uvs, List indices, Rect blockUVs) diff --git a/Logs/AssetImportWorker0.log b/Logs/AssetImportWorker0.log new file mode 100644 index 0000000..57d1baa --- /dev/null +++ b/Logs/AssetImportWorker0.log @@ -0,0 +1,473 @@ +Using pre-set license +Built from '2021.1/staging' branch; Version is '2021.1.6f1 (c0fade0cc7e9) revision 12647134'; Using compiler version '192528614'; Build Type 'Release' +OS: 'Windows 10 Home; OS build 19041.928; Version 2004; 64bit' Language: 'de' Physical Memory: 16324 MB +BatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 0 + + COMMAND LINE ARGUMENTS: +C:\Program Files\2021.1.6f1\Editor\Unity.exe +-adb2 +-batchMode +-noUpm +-name +AssetImportWorker0 +-projectPath +D:/Code/Unity/ourcraft +-logFile +Logs/AssetImportWorker0.log +-srvPort +59413 +Successfully changed project path to: D:/Code/Unity/ourcraft +D:/Code/Unity/ourcraft +Using Asset Import Pipeline V2. +Refreshing native plugins compatible for Editor in 46.69 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Initialize engine version: 2021.1.6f1 (c0fade0cc7e9) +[Subsystems] Discovering subsystems at path C:/Program Files/2021.1.6f1/Editor/Data/Resources/UnitySubsystems +[Subsystems] Discovering subsystems at path D:/Code/Unity/ourcraft/Assets +GfxDevice: creating device client; threaded=0; jobified=0 +Direct3D: + Version: Direct3D 11.0 [level 11.1] + Renderer: NVIDIA GeForce GTX 1070 (ID=0x1b81) + Vendor: NVIDIA + VRAM: 8088 MB + Driver: 27.21.14.6089 +Initialize mono +Mono path[0] = 'C:/Program Files/2021.1.6f1/Editor/Data/Managed' +Mono path[1] = 'C:/Program Files/2021.1.6f1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit' +Mono config path = 'C:/Program Files/2021.1.6f1/Editor/Data/MonoBleedingEdge/etc' +Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56352 +Begin MonoManager ReloadAssembly +Registering precompiled unity dll's ... +Register platform support module: C:/Program Files/2021.1.6f1/Editor/Data/PlaybackEngines/WebGLSupport/UnityEditor.WebGL.Extensions.dll +Register platform support module: C:/Program Files/2021.1.6f1/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll +Registered in 0.004258 seconds. +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 39.10 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 2.453 seconds +Platform modules already initialized, skipping +Registering precompiled user dll's ... +Registered in 0.002469 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.56 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.095 seconds +Platform modules already initialized, skipping +======================================================================== +Worker process is ready to serve import requests +Launched and connected shader compiler UnityShaderCompiler.exe after 0.07 seconds +Refreshing native plugins compatible for Editor in 0.48 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1578 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 45 unused Assets to reduce memory usage. Loaded Objects now: 2003. +Total: 5.189500 ms (FindLiveObjects: 0.190500 ms CreateObjectMapping: 0.097500 ms MarkObjects: 4.834600 ms DeleteObjects: 0.065300 ms) + +======================================================================== +Received Import Request. + path: Assets/New Physic Material.physicMaterial + artifactKey: Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) +Start importing Assets/New Physic Material.physicMaterial using Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) -> (artifact id: '00d94eb3258f5690d51de87daf0d922a') in 0.040152 seconds +======================================================================== +Received Import Request. + Time since last request: 75.953214 seconds. + path: Assets/Player.physicMaterial + artifactKey: Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) +Start importing Assets/Player.physicMaterial using Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) -> (artifact id: 'c7bc1b67e80c5c34fbe69be1bdd2275a') in 0.003492 seconds +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002289 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.009 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.56 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.7 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2006. +Total: 4.979700 ms (FindLiveObjects: 0.125300 ms CreateObjectMapping: 0.041200 ms MarkObjects: 4.769400 ms DeleteObjects: 0.043000 ms) + +======================================================================== +Received Import Request. + Time since last request: 25.196800 seconds. + path: Assets/Player.physicMaterial + artifactKey: Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) +Start importing Assets/Player.physicMaterial using Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) -> (artifact id: '864386c0948b67fc8da936131b1d8d0a') in 0.014289 seconds +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002375 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.61 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.729 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.7 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2009. +Total: 4.739200 ms (FindLiveObjects: 0.139600 ms CreateObjectMapping: 0.061200 ms MarkObjects: 4.512600 ms DeleteObjects: 0.024800 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001927 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.52 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.012 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.52 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.7 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2012. +Total: 5.277500 ms (FindLiveObjects: 0.141900 ms CreateObjectMapping: 0.052400 ms MarkObjects: 5.044800 ms DeleteObjects: 0.037300 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001911 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.014 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.89 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.7 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2015. +Total: 6.121100 ms (FindLiveObjects: 0.148100 ms CreateObjectMapping: 0.044100 ms MarkObjects: 5.894300 ms DeleteObjects: 0.033200 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002898 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.51 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.982 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.61 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.7 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2018. +Total: 5.396600 ms (FindLiveObjects: 0.120100 ms CreateObjectMapping: 0.047400 ms MarkObjects: 5.201800 ms DeleteObjects: 0.026200 ms) + +======================================================================== +Received Import Request. + Time since last request: 265.270240 seconds. + path: Assets/Player.physicMaterial + artifactKey: Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) +Start importing Assets/Player.physicMaterial using Guid(54b0ea5ba996ad447b7c81656f7a508c) Importer(815301076,1909f56bfc062723c751e8b465ee728b) -> (artifact id: 'b1ee2791235230090991eb9772f0b115') in 0.013557 seconds +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002561 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.49 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.027 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2021. +Total: 5.196500 ms (FindLiveObjects: 0.125300 ms CreateObjectMapping: 0.040700 ms MarkObjects: 4.989500 ms DeleteObjects: 0.040200 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002325 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.64 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.982 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.62 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.6 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2024. +Total: 5.327200 ms (FindLiveObjects: 0.113900 ms CreateObjectMapping: 0.042400 ms MarkObjects: 5.148600 ms DeleteObjects: 0.021300 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001796 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.65 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.965 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.52 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2027. +Total: 5.351300 ms (FindLiveObjects: 0.185200 ms CreateObjectMapping: 0.067900 ms MarkObjects: 5.063400 ms DeleteObjects: 0.033600 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002271 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.48 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.016 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.52 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2030. +Total: 5.325000 ms (FindLiveObjects: 0.148500 ms CreateObjectMapping: 0.039400 ms MarkObjects: 5.092500 ms DeleteObjects: 0.043600 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001754 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.49 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.226 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 1.00 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2033. +Total: 6.012900 ms (FindLiveObjects: 0.282900 ms CreateObjectMapping: 0.129100 ms MarkObjects: 5.555600 ms DeleteObjects: 0.042700 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001771 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.53 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.921 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.50 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2036. +Total: 5.375400 ms (FindLiveObjects: 0.128400 ms CreateObjectMapping: 0.042500 ms MarkObjects: 5.156000 ms DeleteObjects: 0.047300 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001957 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.49 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.038 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.49 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2039. +Total: 5.421300 ms (FindLiveObjects: 0.131600 ms CreateObjectMapping: 0.054900 ms MarkObjects: 5.212900 ms DeleteObjects: 0.020600 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002067 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.76 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.071 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.81 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2042. +Total: 6.185100 ms (FindLiveObjects: 0.188800 ms CreateObjectMapping: 0.088300 ms MarkObjects: 5.871400 ms DeleteObjects: 0.035300 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002214 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.49 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.974 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.59 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2045. +Total: 5.314900 ms (FindLiveObjects: 0.131000 ms CreateObjectMapping: 0.051400 ms MarkObjects: 5.109600 ms DeleteObjects: 0.021800 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.001902 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.86 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.957 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.48 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2048. +Total: 6.032000 ms (FindLiveObjects: 0.119100 ms CreateObjectMapping: 0.044100 ms MarkObjects: 5.824000 ms DeleteObjects: 0.043800 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002269 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.50 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.901 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.50 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2051. +Total: 5.055600 ms (FindLiveObjects: 0.120200 ms CreateObjectMapping: 0.045600 ms MarkObjects: 4.843100 ms DeleteObjects: 0.045600 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.003599 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 0.964 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2054. +Total: 6.058600 ms (FindLiveObjects: 0.167400 ms CreateObjectMapping: 0.050500 ms MarkObjects: 5.788500 ms DeleteObjects: 0.051200 ms) + +======================================================================== +Received Prepare +Registering precompiled user dll's ... +Registered in 0.002031 seconds. +Begin MonoManager ReloadAssembly +Native extension for WindowsStandalone target not found +Native extension for WebGL target not found +Refreshing native plugins compatible for Editor in 0.88 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Mono: successfully reloaded assembly +- Completed reload, in 1.031 seconds +Platform modules already initialized, skipping +Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins. +Preloading 0 native plugins for Editor in 0.00 ms. +Unloading 1572 Unused Serialized files (Serialized files now loaded: 0) +System memory in use before: 69.7 MB. +System memory in use after: 69.8 MB. + +Unloading 40 unused Assets to reduce memory usage. Loaded Objects now: 2057. +Total: 5.776500 ms (FindLiveObjects: 0.128000 ms CreateObjectMapping: 0.041600 ms MarkObjects: 5.553200 ms DeleteObjects: 0.052900 ms) + diff --git a/Logs/shadercompiler-AssetImportWorker0.log b/Logs/shadercompiler-AssetImportWorker0.log new file mode 100644 index 0000000..56ef773 --- /dev/null +++ b/Logs/shadercompiler-AssetImportWorker0.log @@ -0,0 +1,3 @@ +Base path: 'C:/Program Files/2021.1.6f1/Editor/Data', plugins path 'C:/Program Files/2021.1.6f1/Editor/Data/PlaybackEngines' +Cmd: initializeCompiler +