aspectron / hydrogen

JSX OpenGL Interface Module
1 stars 0 forks source link

Export performance data to be accessible in v8 #2

Open aspectron opened 10 years ago

aspectron commented 10 years ago

We need frame rate (I believe that is already available in the engine), but most importantly we need texture transfer bandwidth utilization (in Mb/sec).

Every time a texture rect is copied, the byte size of this rect should be added to a counter and every frame rendered this counter has to cumulate & reset. Then cumulative value per second should be available as a part of the profile object.

Accumulation can be done in the main rendering loop using timestamps. When duration of frame rendered passes, take total MB/duration_passed.

pmed commented 10 years ago

I plan to add a property Engine.perfCounters that will be an object with following attributes:

aspectron commented 10 years ago

make it textureTxRate[] = [ actual, 5 sec average, 30 sec average]

what about Engine.profileData? or Engine.profileStats or simply Engine.profile?

ASY

On Tue, Apr 1, 2014 at 11:16 AM, Pavel Medvedev notifications@github.comwrote:

I plan to add a property Engine.perfCounters that will be an object with following attributes:

  • fps number of frames per second
  • fpsUnheld number of unheld frames per second
  • frt Frame rate, number
  • txt Texture data transfer rate, Mbytes per second

Reply to this email directly or view it on GitHubhttps://github.com/aspectron/hydrogen/issues/2#issuecomment-39217672 .