Skip to content
Simple example for instanced rendering in Kha.
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 3 commits behind AoE-Maniac:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Kha @ 207294d
Sources
.gitignore
.gitmodules
LICENSE.md
README.md
build-web.bat
build-win.bat
khafile.js

README.md

Kha-InstancedExample

Simple example for instanced rendering in Kha. Preview: http://www.aoe-maniac.de/instances/

Instanced rendering allows you to render an object multiple times with some variations, but in a singe drawcall. An example for this are lots of identical blocks with different positions. Rendering them individually there is lots of communication overhead between CPU and GPU. But please keep in mind that this only makes sense if you are drawing many instances of a single model.

There are 10.000 instances consiting of 128 polyons generated by default, both values can be tweaked easily.

You can’t perform that action at this time.