Sign in to follow this  

matrix instancing , can it be done ?

Recommended Posts

i did some testing and found some horrible stuff and loss of fps in my engine.
did a text of 1000 model cubes with a texture on , all the same just differnt matrix
so i only send texture details and camera , once per render cycle , but still have to send the right matrix over, this gets me 40 fps

now if i only send the one it once like every thing else , i get 52 fps

thats not a practical soloution,

can a matrix be sent over via instancing , so i only use one draw call but send over 1000 matrix's in a call, ie instanceing

or can you not send over matrixs. if you can can you point me in the right direction please

Share this post

Link to post
Share on other sites
You should be able to use instancing, but without knowing what graphics API you're using, no one can give you specifics. Also, if your cubes are all sized and oriented the same way, you only need to send a position per instance, which would save you some bandwidth.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this