sorry, my
stress-test and info tool
// kll bench and stress test with sysinfo and numinfo
// key [+] [-] [s]
// graphic card info only see with P2D P3D renderer
float rset=120, r;
int x = 0;
int w = 400;
int h = 200;
int grid=20, many = grid*grid;
boolean stressenable=true;
void settings() {
//size(w, h); // default use JAVA2D
// size(w, h,FX2D);
// size(w, h,P2D);
size(w, h,P3D); //depricated size(w, h,OPENGL);
}
void setup() {
frameRate(rset);
background(200, 200, 0);
numinfo();
sysinfo();
println("\nstresstest ( "+grid+"*"+grid+" = "+many+" ) points, [+][-] grid +-10" );
}
void draw() {
surface.setTitle("SYS INFO set "+rset+": "+ nf(r, 0, 1)+" FPS" );
if ( stressenable ) stress();
r = frameRate;
if ( r > 30 ) stroke(0, 200, 0);
else stroke(200, 0, 0);
line(x, height-2, x, height-2-r); // FPS graph
x++;
if ( x > width ) {
x = 0;
background(200, 200, 0);
}
}
void stress() {
push();
/*
// test IFs
long test = grid*1000000l;
for ( long i=0; i<test; i++) if ( ! stressenable ) println("never");
*/
for ( int i=0; i<grid; i++) {
for ( int j=0; j<grid; j++) {
stroke(random(255), random(255), random(255) );
point(5+i, 5+j);
}
}
pop();
}
void sysinfo() {
println( "__SYS INFO :");
println( "System : " + System.getProperty("os.name") + " " + System.getProperty("os.version") );// + " " + System.getProperty("os.arch") );
println( "JAVA : " + System.getProperty("java.home") + " rev: " +javaVersionName);
//println( System.getProperty("java.class.path") );
//println( "\n" + isGL() + "\n" );
println( "OPENGL : VENDOR " + PGraphicsOpenGL.OPENGL_VENDOR+" RENDERER " + PGraphicsOpenGL.OPENGL_RENDERER+" VERSION " + PGraphicsOpenGL.OPENGL_VERSION+" GLSL_VERSION: " + PGraphicsOpenGL.GLSL_VERSION);
println( "user.home : " + System.getProperty("user.home") );
println( "user.dir : " + System.getProperty("user.dir") );
println( "user.name : " + System.getProperty("user.name") );
println( "sketchPath : " + sketchPath() );
println( "dataPath : " + dataPath("") );
println( "dataFile : " + dataFile("") );
println( "frameRate : target "+nf(rset, 0, 1)+" actual "+nf(r, 0, 1));
println( "canvas : width "+width+" height "+height+" pix "+(width*height));
}
void numinfo() {
println( "__NUM INFO :");
println( "byte "+Byte.SIZE+ " bit | min: "+Byte.MIN_VALUE+ "\t\t\t max: "+Byte.MAX_VALUE);
println( "short "+Short.SIZE+ " bit | min: "+Short.MIN_VALUE+ "\t\t\t max: "+Short.MAX_VALUE);
println( "int "+Integer.SIZE+" bit | min: "+Integer.MIN_VALUE+"\t\t max: " +Integer.MAX_VALUE);
println( "long "+Long.SIZE+ " bit | min: "+Long.MIN_VALUE+ "\t max: " +Long.MAX_VALUE);
println( "float "+Float.SIZE+ " bit | min: "+Float.MIN_VALUE+ "\t\t\t max: "+Float.MAX_VALUE);
println( "double "+Double.SIZE+ " bit | min: "+Double.MIN_VALUE+ "\t\t\t max: "+Double.MAX_VALUE);
}
void keyPressed() {
if ( key == 's' ) stressenable = ! stressenable;
if ( key == '+' ) {
grid +=10;
many = grid*grid;
println("stresstest ( "+grid+"*"+grid+" = "+many+" ) points" );
}
if ( key == '-' ) {
grid -=10;
many = grid*grid;
println("stresstest ( "+grid+"*"+grid+" = "+many+" ) points" );
}
}
works NOT if the renderer is damaged anyhow.
ok now i see the correct JAVA version in the error picture.
( sure now it is the internal one?
sorry, about the 2 monitor no idea, and how that could be related.
but besides your ?windows problem?
what you try to do anyhow,
you can create and run your sketch on the win 64bit / processing 64bit.
you can export from there the 64bit version with JAVA included,
using the 32 bit processing you can export the 32 bit version with THAT JAVA included
( just can not run it ( as sketch or export )
but what you are doing that for? to share it with others who have ?win7 32bit?
now try to test the 32bit export on a old system, if run you actually got what you needed,
despite the ERROR.