A
Ashak
Hi,
I've been playing with fullscreen exclusive mode in Java for a few
days, yet i've run into troubles. I simply had a single loop (no
threads), it was simply drawing a red ball bouncing around the screen
on a blue background. After about 690 times around my loop (move the
object, redraw it), the program seems to exit. However, I get no
errors and control doesn't continue through the program and execute
the last few statements. The only thing I can think of is that i'm
using graphics memory or something. The machine I was originally
testing on has about 8M of memory for the graphics card, a different
machine with 64M of ram exhibits the same problem but after a much
larger amount of time. I don't have the code at hand, but I can post
it tomorrow if anyone thinks it might help (there's not much too it at
all). I'm creating a BufferStrategy with two buffers, and then getting
a graphics context from my BufferStrategy, drawing to that, then
swapping the buffers over.
Anyway... anyone got any ideas where my problem might be?
Thanks.
I've been playing with fullscreen exclusive mode in Java for a few
days, yet i've run into troubles. I simply had a single loop (no
threads), it was simply drawing a red ball bouncing around the screen
on a blue background. After about 690 times around my loop (move the
object, redraw it), the program seems to exit. However, I get no
errors and control doesn't continue through the program and execute
the last few statements. The only thing I can think of is that i'm
using graphics memory or something. The machine I was originally
testing on has about 8M of memory for the graphics card, a different
machine with 64M of ram exhibits the same problem but after a much
larger amount of time. I don't have the code at hand, but I can post
it tomorrow if anyone thinks it might help (there's not much too it at
all). I'm creating a BufferStrategy with two buffers, and then getting
a graphics context from my BufferStrategy, drawing to that, then
swapping the buffers over.
Anyway... anyone got any ideas where my problem might be?
Thanks.