Jump to content

World Performance Statistics

Recommended Posts

I noticed that World:GetPolyCount() doesn't exist. I think it would be beneficial to have various counters as well to help debug performance drops:


Just a few thoughts:

  • Number of draw calls
  • Number of surfaces (I guess the same as above or is that materials?)
  • Poly count
  • VRAM used by game
  • Active/total physics bodies
  • etc.

Share this post

Link to post

Most of these values are printed, if you call

self.context:DrawStats(10, 10, true) [LUA]
context->DrawStats(10, 10, true) [C++]


The third parameter ("extra") set to "true" instead of the default value "false" gives more output, which includes most of the values you mentioned.

Share this post

Link to post

That works great, I hope it's documented soon! Of course, the more stats the better.


However, what does total memory mean (and what is it measured in)?

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...