Synchronizing graphics with Cacio
Mario Torre
neugens.limasoftware at gmail.com
Wed Apr 22 15:41:52 UTC 2015
2015-04-22 17:11 GMT+02:00 Ralf Spathelf <ralf.spathelf at aicas.de>:
> Hi guys,
Hi Ralf!
Nice to see you're contributing again back to Cacio!
> We are experimenting with implementing an OpenGL port using Caciocavallo.
> The OpenGL render queue has to be flushed after repainting, we do this in
> Toolkit.sync().
>
> Do you have an idea where this could be called in the Cacio code? We tried
> to do this after a PaintEvent in CacioComponentPeer.handleEvent() but this
> did not work.
This seems expensive.
One quick place where this can be done may be after blitting. or by
keepin track of your repaints and do after a repain operation (but you
should try to do a batch).
Depending on the application this may be good to do.
Another thing to do is to do every n painting operation or at each
refresh rate cycle.
I'll think some better places where you could do that and let you know.
Cheers,
Mario
--
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
Java Champion - Blog: http://neugens.wordpress.com - Twitter: @neugens
Proud GNU Classpath developer: http://www.classpath.org/
OpenJDK: http://openjdk.java.net/projects/caciocavallo/
Please, support open standards:
http://endsoftpatents.org/
More information about the caciocavallo-dev
mailing list