-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This largely undoes a change I did recently where PrimitiveInfo has a FRenderPrimitive* to save some space and keep a command at 64 bytes. This wasn't a good idea because the inner rendering loop shouldn't to any dereference in the common case. This change reorganises PrimitiveInfo such that it stores all the data necessary to render a primitive in the common case. The less common cases are when hybrid instancing, morphing or skinning are used; in those cases, a dereference into the renderable SOA is needed. PrimitiveInfo currently has 16 bytes free, which we keep for futur use.
- Loading branch information
1 parent
490e8cf
commit e4442a5
Showing
2 changed files
with
93 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters