Questions about Graphics synchronization
Recently I encounter a problem about animation's up-to-date display.
I use DFB's window concept to implement the PBP AWT, thus, DFB window's flip function need to be called to see what the program has drawn.
I read the JAVA layer of AWT, found out Toolkit's sync() method is used to synchronize Graphics state. Toolkit's sync() method is trigger by UPDATE event in Component.java, whick is send out by repaint() method. So I use the flip() function to implement the native method of Toolkit's sync() method.
My understanding about Graphics synchronization is as follow:
repaint(called by application)->toolkit's sync()->native sync(flip)->graphics buffered update to screen
Am I right about the Graphics synchronization? I'm confused about the Graphics synchronization.
Can anyone help me about this issue? Thanks in advance.