redeclipse / base

Base environment for Red Eclipse and associated source files.
https://redeclipse.net/
436 stars 89 forks source link

Be able to have model instances. #1103

Open SniperGoth opened 4 years ago

SniperGoth commented 4 years ago

Just a little experiment i did here, where i made a bunch of trees a single object, on blender, to reduce draw calls, then exported it to a map, to simulate instancing of models, to see how much performance gain we could have. 20200930103514

And, the results speak to themselves.

"instanced" 20200930103541 "instanced no shadows" 20200930103627

Versus the same tree, but all being a single object: 20200930103854

No shadows 20200930103939

Map and model file to see how everyone does on it. instance-tests.zip

Calinou commented 4 years ago

Are there "real world scenario" maps on which we'd benefit from instancing significantly?

SniperGoth commented 4 years ago

Of the ones included in the game, Rift and Conquest are very good candidates to test this on, as both have very heavy uses of models in their maps. As for others, i'd say Dziq's Plaza. Basically any map that has a lot of vegetation or very heavy use of models to do detail work, or something like 3d Grass, as a example.