Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
Norm Radder wrote:Where is the code that loads the images?
Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
why you need it
I only want to load the ones inside the view
Norm Radder wrote:
why you need it
You asked:
I only want to load the ones inside the view
How does the code decide to load an image?
Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
Campbell Ritchie wrote:This discussion would fit better in our GUIs forum.
Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
Already done. Swing/ etcJustan Jefferson wrote:
Campbell Ritchie wrote:This discussion would fit better in our GUIs forum.
how do I change it?
Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
Justan Jefferson wrote:Currently, the code loads all the images, even if they are outside of the window/viewport. I want to only draw the ones inside the window(the ones that the user can see). Does the Graphics2D.draw decide which ones to draw and which ones to don't?
Carey Brown wrote:
Justan Jefferson wrote:Currently, the code loads all the images, even if they are outside of the window/viewport. I want to only draw the ones inside the window(the ones that the user can see). Does the Graphics2D.draw decide which ones to draw and which ones to don't?
So your problem is that it attempts to draw 100k images and not just 30k - am I right?
Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
Carey Brown wrote:I would slap a bunch of print statements in there to see if the variables actually contain what you think they do.
only drawing the ones that are inside the window.
Carey Brown wrote:
Carey Brown wrote:I would slap a bunch of print statements in there to see if the variables actually contain what you think they do.
Hackcraft_
I'm a highschool student who really likes coding (have 6 years of experience)
Don't get me started about those stupid light bulbs. |