Collecting webGL app framerate histogram data

10.3k views Asked by At

I'm thinking to stick for a particular framework to work for my academic course but only based on results I should prove. I want to plot the graph for all the three frameworks where No.of Vertices is one axis and FPS (threshold is 60) is on other axis. Will that be good enough to take single predefined model in formats like obj, collada, json etc and load it in three frameworks? Then log the frame rate and number of vertices to some external file and thereafter use the data for plotting a graph to report the best framework among three based on Performance parameter. But I'm looking for some boilerplate codes for all these frameworks to load different models (can be used for number of vertices dimension in my graph) and log the frame rates for every second to external file. This is the approach I've been thinking. But couldn't find much help on this on internet. I wish someone could help me?

1

There are 1 answers

1
Mikko Ohtamaa On BEST ANSWER

You can get FPS histogram data using stats.js library which is bundled with all Three.js examples

https://github.com/mrdoob/stats.js

Exporting the collected data to a file can be done using HTML5 File System API.

http://www.html5rocks.com/en/tutorials/file/filesystem/