Simulating Multiple Threads in Unity

Veröffentlicht am: 19 November 2016
auf dem Kanal: Jorge Reyna Tamez
404
1

The planet mesh takes only one frame to build, but populating it with objects is a slow process. In this test I use one coroutine to simulate multi-threading. There are 54 jobs running "simultaneously". It took me a whole week to figure out the algorithm and make it run, it is efficient at about 60 frames per second, however there I'm generating too much garbage which drops the frame rate to 30FPS. During the build part colliders are disabled to avoid costly physics calculations, at the end of the process each job must enable it's colliders, but this operation causes the frame rate to drop to 15FPS, and there's no way to improve it because for the Unity's API it's an atomic operation.


Auf dieser Seite können Sie das Online-Video Simulating Multiple Threads in Unity mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jorge Reyna Tamez 19 November 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 404 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!