Jump to content

World Performance Statistics


nick.ace
 Share

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.

  • Upvote 4
Link to comment
Share on other sites

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.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

 Share

×
×
  • Create New...