Mittwoch, 29. Juni 2011

AppContext for rescue

Yesterday I had a talk with Roman and Mario about AppContexts, and it turns out to be really useful.
Basically AppContexts are used inside AWT to shield one application/applet from others, create seperate Event-Dispatch-Threads for each app and so on.

Originally introduced for Applets I guess, this is exactly what I was looking for. Furthermore it solves the problem of out-of-http-request access to the surface. During an http-access I of course now which session I am on - but what if an application starts its own threads? Well, now each app knows its Session, as its stored in its AppContext.

It also allows for multiple LnFs set in the same server:

Dienstag, 7. Juni 2011

OpenGL pipeline works with the i915 open-source drivers

Recently I updated my i945GM based notebook to Fedora-15 (mesa 7.11 pre-release) and gave the java2d-OpenGL pipeline a try again.

To my surprise, it worked:
jconsole -J-Dsun.java2d.opengl=True
OpenGL pipeline enabled for default config on screen 0
i915_program_error: Exceeded max nr indirect texture lookups (6 out of 4)
i915_program_error: Unsupported opcode: DDX

Its still dog-slow and crashes every now and then - but it clearly shows things are improving in the open-source opengl driver world. The OpenGL pipeline seems to be a rather tough beast, as it requires lots of extension/feature and even the proprietary nvidia driver break it from time to time.