Results 1 to 4 of 4
  1. #1
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Post offscreen drawing vs non offscreen drawing whats better for performance

    or does it matter?

    i have 5000px image drawn on 700px jpanel if i cut this up so im not drawing offscreen will it increase performance or is it a waste of time?

  2. #2
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,039
    Rep Power
    6

    Default Re: offscreen drawing vs non offscreen drawing whats better for performance

    It should help performance.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,039
    Rep Power
    6

    Default Re: offscreen drawing vs non offscreen drawing whats better for performance

    What are you actually drawing? A scaled image. Or are you using the JPanel as a "window" to view different parts of the image?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  4. #4
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Re: offscreen drawing vs non offscreen drawing whats better for performance

    its a regular image in some ways the jpanel is displaying different parts of the image

Similar Threads

  1. help in drawing tex
    By Rampletero in forum Advanced Java
    Replies: 8
    Last Post: 03-10-2012, 06:17 PM
  2. Drawing offscreen?
    By santa in forum Java 2D
    Replies: 22
    Last Post: 02-24-2012, 05:24 AM
  3. offscreen.getGraphics() error
    By luis.depedro in forum AWT / Swing
    Replies: 10
    Last Post: 01-21-2012, 10:43 PM
  4. drawing an image to an offscreen image
    By hunterbdb in forum Java 2D
    Replies: 9
    Last Post: 10-30-2008, 07:17 PM
  5. Problem Setting offscreen background
    By D34N0 in forum Java Applets
    Replies: 1
    Last Post: 07-14-2007, 12:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •