This post originated from an RSS feed registered with Java Buzz
by Scott Delap.
Original Post: UI and Adaptive Performance
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Romain's latest blog entries talks about how he coded adaptive performance into his Curves Swing Demo. I'm wondering if this concept could be expanded generically. I've written specific optimizations in the past for table rendering that have taken update response times into account. Along these lines, I've considered writing a generic utility that would poll the event thread occassionaly and let you know how "responsive" if is. If it is busy, listeners plugging into the utility would know to reduce the frequency of their updates. However, this process in effect adds to the load of the event thread. Seems a bit like quantum physics where you can't measure the position and the speed at the same time without effecting the other.
Adaptive Performances My last demo uses CPU intensive graphics. I hacked the code a little bit to adapt the performances to the CPU power and activity. Basically, the application computes the time taken by the last painting phase and change its behavior accordingly...