Call overhead stats

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Call overhead stats

Post by hendu »

I would've used tri strips or tri fans though, saves two indices ;)
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Call overhead stats

Post by Nadro »

Good idea, I'll change it in next commit.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Call overhead stats

Post by hendu »

Oh, since the indices are static, they should be static const, and not initialized in code.

I do that in my screenquad, the syntax is

Code: Select all

const u16 screenQuad::indices[4] = {0, 1, 2, 3}; // in a file
static const u16 indices[4]; // in the header
 
Post Reply