Profiling question

How could I profile the number of draw calls from within lime/openfl?

trace( openfl.display._internal.stats.Context3DStats.totalDrawCalls() );


does this only work for a specific renderer? It always traces 0 no matter what I’m displaying. edit I realized I needed to compile with -Dgl_stats
@tour1st is there an api to poll the gpu memory usage as well?

Sorry, I forgot to mention that you needed to compile with gl_stats compiler flag :innocent:
I don’t think there is any API to montor GPU memory usage, but that’d be nice to have !

1 Like