// rp5.bsh //setenv("JAVA_HOME", "/opt/jdk1.7.0_51"); setenv("JAVA_HOME", "/opt/jdk1.8.0"); setenv("GEM_HOME", "/home/tux/.gem/ruby/2.1.0"); setenv("GEM_PATH", "/home/tux/.gem/ruby/2.1.0"); new console.commando.CommandoDialog(view,"commando.rp5");
<!-- rp5.xml monkstone, 2013-August-16 for ruby-processing > 2.0.12 --> <COMMANDO> <UI> <CAPTION LABEL="Run"> <FILE_ENTRY LABEL="ruby file" VARNAME="file" EVAL="buffer.getName()"/> </CAPTION> <CAPTION LABEL="Path to rp5"> <ENTRY LABEL="path" VARNAME="rp5path" DEFAULT=""/> </CAPTION> <CAPTION LABEL="Choose Run/Watch/Create/App"> <CHOICE LABEL="Select" VARNAME="type" DEFAULT="run" > <OPTION LABEL="run" VALUE="run"/> <OPTION LABEL="watch" VALUE="watch"/> <OPTION LABEL="create" VALUE="create"/> <OPTION LABEL="export app" VALUE="app"/> <OPTION </CHOICE> </CAPTION> <CAPTION LABEL="JRuby Opt"> <TOGGLE LABEL="jruby-complete" VARNAME="jruby" DEFAULT="FALSE"/> </CAPTION> </UI> <COMMANDS> <COMMAND SHELL="System" CONFIRM="FALSE"> <!-- cd to working dir --> buf = new StringBuilder("cd "); buf.append(MiscUtilities.getParentOfPath(buffer.getPath())); buf.toString(); </COMMAND> <COMMAND SHELL="System" CONFIRM="FALSE"> buf = new StringBuilder(rp5path); buf.append("rp5 "); if (jruby){ buf.append("--nojruby "); } buf.append(type); buf.append(" "); switch(type){ case "run": case "watch": buf.append(file); break; } buf.toString(); </COMMAND> </COMMANDS> </COMMANDO>
frame | jdk7 | jdk8 |
---|---|---|
30 | 3.28216 | 3.78027 |
60 | 3.74940 | 4.49563 |
90 | 4.43314 | 6.03558 |
120 | 4.28747 | 6.36669 |
150 | 4.32380 | 6.30815 |
180 | 4.29745 | 6.16097 |
210 | 4.32281 | 6.37150 |
The above table was generated by capturing fps at 30 frame intervals (so is not entirely fair), and what you don't see cf watching the sketch running live, is a slightly faster start, followed by a pronounced slowdown (presumably when the optimization kicks in). Following a bit of experimentation best results were obtained with -XX:+TieredCompilation option alone 7+ fps with jdk8.
No comments:
Post a Comment