AWSIM icon indicating copy to clipboard operation
AWSIM copied to clipboard

RGL object fetching reworked

Open pijaro opened this issue 1 year ago • 2 comments

The approach for the system looks as follows:

  • Fetch all the scene objects on the initialization, only once,
  • Each object spawned on the scene (vehicle or pedestrian) registers itself in the RGL SceneManager.
  • Each object despawned from the scene (vehicle or pedestrian) unregisters itself in from the RGL SceneManager.

In a result, there are no frequent fetches of the whole level (FindObjectsOfType).

Requires #148

pijaro avatar Jun 07 '24 12:06 pijaro

Change to draft until #148 is merged

mackierx111 avatar Jun 11 '24 09:06 mackierx111

Nice work :+1: Unfortunately SceneManager: Update transforms and skinned meshes is still slow. It would be possible to just update objects that are not marked static in unity?

ceccocats avatar Jun 28 '24 23:06 ceccocats