Who can tell me what is the GameTaskQueue's work?

this is the implement method of BaseSimpleGame below:



  protected void render( float interpolation ) {

        Renderer r = display.getRenderer();

        /** Clears the previously rendered information. */

        r.clearBuffers();

       

        // Execute renderQueue item

        GameTaskQueueManager.getManager().getQueue(GameTaskQueue.RENDER).execute();

    }



but I can't understand the GameTastQueue, and it also confuse me on the wiki.

It is for attaching GameStates, which are like independent scene graphs with their roots and the such. The idea mostly is to have things in a modular fashion and to aid the use of threads when programming your game… Check the wiki articles on StandardGame for more info on nice ways to use GameStates:



http://www.jmonkeyengine.com/wiki/doku.php?do=search&id=standardgame

It is for attaching GameStates ...
is not quite correct.

Its to execute code (creating RenderStates for example) inside the opengl thread, when using a multi threaded environment like StandardGame.
Core-Dump said:

Its to execute code (creating RenderStates for example) inside the opengl thread, when using a multi threaded environment like StandardGame.


I stand corrected! I actaully was hesitant about saying that, but didn't know how to express it properly