if ( KeyBindingManager.getKeyBindingManager().isValidCommand( "mem_report", false ) ) { long totMem = Runtime.getRuntime().totalMemory(); long freeMem = Runtime.getRuntime().freeMemory(); long maxMem = Runtime.getRuntime().maxMemory();  System.err.println("|*|*|  Memory Stats  |*|*|"); System.err.println("Total memory: "+(totMem>>10)+" kb"); System.err.println("Free memory: "+(freeMem>>10)+" kb"); System.err.println("Max memory: "+(maxMem>>10)+" kb"); }
    protected void update( float interpolation ) {        /** Recalculate the framerate. */        timer.update();        /** Update tpf to time per frame according to the Timer. */        tpf = timer.getTimePerFrame();        /** Check for key/mouse updates. */        input.update( tpf );        updateBuffer.setLength( 0 );        updateBuffer.append( "FPS: " ).append( (int) timer.getFrameRate() ).append(                " - " );        updateBuffer.append( display.getRenderer().getStatistics( tempBuffer ) );        /** Send the fps to our fps bar at the bottom. */        fps.print( updateBuffer );        /** If toggle_pause is a valid command (via key p), change pause. */        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "toggle_pause", false ) ) {            pause = !pause;        }        /** If toggle_wire is a valid command (via key T), change wirestates. */        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "toggle_wire", false ) ) {            wireState.setEnabled( !wireState.isEnabled() );            rootNode.updateRenderState();        }        /** If toggle_lights is a valid command (via key L), change lightstate. */        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "toggle_lights", false ) ) {            lightState.setEnabled( !lightState.isEnabled() );            rootNode.updateRenderState();        }        /** If toggle_bounds is a valid command (via key B), change bounds. */        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "toggle_bounds", false ) ) {            showBounds = !showBounds;        }        /** If toggle_depth is a valid command (via key F3), change depth. */        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "toggle_depth", false ) ) {            showDepth = !showDepth;        }        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "toggle_normals", false ) ) {            showNormals = !showNormals;        }        /** If camera_out is a valid command (via key C), show camera location. */        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "camera_out", false ) ) {            System.err.println( "Camera at: "                    + display.getRenderer().getCamera().getLocation() );        }        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "screen_shot", false ) ) {            display.getRenderer().takeScreenShot( "SimpleGameScreenShot" );        }        if ( KeyBindingManager.getKeyBindingManager().isValidCommand(                "parallel_projection", false ) ) {            if ( cam.isParallelProjection() ) {                cameraPerspective();            }            else {                cameraParallel();            }        }        if ( KeyBindingManager.getKeyBindingManager().isValidCommand( "exit",                false ) ) {            finish();        }    }