[ 
https://issues.apache.org/jira/browse/PIVOT-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698149#action_12698149
 ] 

Todd Volkert commented on PIVOT-66:
-----------------------------------

After some rough prototyping, this may not be worth it.  It definitely cuts 
down the execution time of scrolling, but not by that much after all's said and 
done, and it drastically complicates the code in Viewport.java.  The bottom 
line seems to be that the buffered image management required to accomplish this 
feat eats substantially into the runtime execution savings we were hoping to 
achieve.  I'll leave this issue open for now because we may be able to get 
access to the display pixels at a higher level in the framework, but if nothing 
changes, this issue may die on the vine.

> Optimize Viewport by only painting the revealed area
> ----------------------------------------------------
>
>                 Key: PIVOT-66
>                 URL: https://issues.apache.org/jira/browse/PIVOT-66
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>    Affects Versions: 1.1
>            Reporter: Todd Volkert
>            Assignee: Todd Volkert
>            Priority: Minor
>             Fix For: 1.2
>
>
> We can cache the paint results of a Viewport in a BufferedImage and re-use 
> that image when the scroll top or scroll left changes, thus enabling us to 
> clip the paint region to just the bounds that were revealed by the scroll 
> change.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to