Optimizations and improvements to our renderer

mousey_0

Last week we did an important fix for glTF skinned animation combined with normalmaps. It fixed the problem with incorrect lighting, but also made the code a little slower in case of skinned animation + normalmaps (we had to turn “off” one optimization). To counteract this, I’m reworking a relevant part of CGE renderer, to not only bring the old optimization back, but also optimize it even more, and bring other small improvements.

It’s a work-in-progress, but we already have:

  1. Colors per vertex passing optimized (faster copy, 3/4 less data for RGB colors).

  2. Custom shader attribute passing optimized (faster copy) and fixed for non-indexed primitives (see demo file).

  3. Tangents and bitangents passing optimized (pass 2/3 less data due to not duplicating normal info).

2 Likes

where is dancer mousey_0 files :slight_smile:

where is dancer mousey_0 files

On Discord and linked from https://github.com/castle-engine/castle-engine/issues/225 . This is not mine model, and I don’t know the license – so it’s not a model we distribute with CGE.

1 Like