I'm trying to create an animation by dynamically generating frames at each step of the animation. Now as I need to run an algorithm to draw pixel by pixel the new frame and I'm using a BufferedImage that I access through its raster data. However 90% of the time is spent inside java.awt.graphcis.drawImage() that I use to transfer the image i开发者_运维百科nto the content of a JFrame.
Is there a more efficient way to draw pixel by pixel inside a graphics object?
Try to use VolatileImage. Much faster than that is hard to do..
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论