Remove FPS counter on command line
- Don't show debug info by default - Other minor formatting changes
This commit is contained in:
parent
ba996232a4
commit
9dc4b12708
|
@ -64,12 +64,12 @@ void HandleDestroy()
|
||||||
|
|
||||||
|
|
||||||
#define GENLINEWIDTH 89
|
#define GENLINEWIDTH 89
|
||||||
#define GENLINES 67
|
#define GENLINES 67
|
||||||
|
|
||||||
char genlog[ ( GENLINEWIDTH + 1 ) * ( GENLINES + 1 ) + 2 ] = "log";
|
char genlog[ ( GENLINEWIDTH + 1 ) * ( GENLINES + 1 ) + 2 ] = "log";
|
||||||
int genloglen;
|
int genloglen;
|
||||||
int genloglines;
|
int genloglines;
|
||||||
int genlinelen = 0;
|
int genlinelen = 0;
|
||||||
int firstnewline = -1;
|
int firstnewline = -1;
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,8 +95,8 @@ void example_log_function( int readSize, char *buf )
|
||||||
genloglines++;
|
genloglines++;
|
||||||
if ( genloglines >= GENLINES )
|
if ( genloglines >= GENLINES )
|
||||||
{
|
{
|
||||||
genloglen -= firstnewline + 1;
|
genloglen -= firstnewline + 1;
|
||||||
int offset = firstnewline;
|
int offset = firstnewline;
|
||||||
firstnewline = -1;
|
firstnewline = -1;
|
||||||
int k;
|
int k;
|
||||||
for ( k = 0; k < genloglen; k++ )
|
for ( k = 0; k < genloglen; k++ )
|
||||||
|
@ -111,12 +111,12 @@ void example_log_function( int readSize, char *buf )
|
||||||
if ( c != '\n' )
|
if ( c != '\n' )
|
||||||
{
|
{
|
||||||
genlog[ genloglen + 1 ] = 0;
|
genlog[ genloglen + 1 ] = 0;
|
||||||
genlog[ genloglen++ ] = '\n';
|
genlog[ genloglen++ ] = '\n';
|
||||||
}
|
}
|
||||||
if ( firstnewline < 0 ) firstnewline = genloglen;
|
if ( firstnewline < 0 ) firstnewline = genloglen;
|
||||||
}
|
}
|
||||||
genlog[ genloglen + 1 ] = 0;
|
genlog[ genloglen + 1 ] = 0;
|
||||||
genlog[ genloglen++ ] = c;
|
genlog[ genloglen++ ] = c;
|
||||||
if ( c != '\n' ) genlinelen++;
|
if ( c != '\n' ) genlinelen++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ double VisTimeEnd, VisTimeStart;
|
||||||
float sound[ SOUNDCBSIZE ];
|
float sound[ SOUNDCBSIZE ];
|
||||||
int soundhead = 0;
|
int soundhead = 0;
|
||||||
int show_debug = 0;
|
int show_debug = 0;
|
||||||
int show_debug_basic = 1;
|
int show_debug_basic = 0;
|
||||||
|
|
||||||
int gKey = 0;
|
int gKey = 0;
|
||||||
extern int force_white;
|
extern int force_white;
|
||||||
|
@ -312,8 +312,6 @@ void RegisterConstructorFunctions()
|
||||||
// Video Stuff
|
// Video Stuff
|
||||||
REGISTERnull();
|
REGISTERnull();
|
||||||
REGISTERDisplayArray();
|
REGISTERDisplayArray();
|
||||||
// REGISTERDisplayDMX();
|
|
||||||
// REGISTERDisplayFileWrite();
|
|
||||||
REGISTERDisplayHIDAPI();
|
REGISTERDisplayHIDAPI();
|
||||||
REGISTERDisplayNetwork();
|
REGISTERDisplayNetwork();
|
||||||
REGISTERDisplayOutDriver();
|
REGISTERDisplayOutDriver();
|
||||||
|
@ -328,7 +326,6 @@ void RegisterConstructorFunctions()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Output stuff
|
// Output stuff
|
||||||
// REGISTERDisplayUSB2812();
|
|
||||||
REGISTEROutputCells();
|
REGISTEROutputCells();
|
||||||
REGISTEROutputLinear();
|
REGISTEROutputLinear();
|
||||||
REGISTEROutputProminent();
|
REGISTEROutputProminent();
|
||||||
|
@ -629,9 +626,6 @@ int main( int argc, char **argv )
|
||||||
ThisTime = OGGetAbsoluteTime();
|
ThisTime = OGGetAbsoluteTime();
|
||||||
if ( ThisTime > LastFPSTime + 1 && showfps )
|
if ( ThisTime > LastFPSTime + 1 && showfps )
|
||||||
{
|
{
|
||||||
#ifndef ANDROID
|
|
||||||
printf( "FPS: %d\n", frames );
|
|
||||||
#endif
|
|
||||||
lastfps = frames;
|
lastfps = frames;
|
||||||
frames = 0;
|
frames = 0;
|
||||||
LastFPSTime += 1;
|
LastFPSTime += 1;
|
||||||
|
|
Loading…
Reference in a new issue