hello,
i am generating a lot of textures in a separate thread using apache’s batik library as the player moves around in the world. that means svg graphics get rasterized in this extra thread and when they are ready, they are loaded into openGL by calling TextureIO.newTexture( myTextureData );
unfortunately every couple of seconds i have a frame which lags for about a quarter of a second. this lagging looks terrible and destroys the smooth motion if the game.
now why can the renderloop be blocked when i do all the rasterization stuff in an extra thread?
thanks!