inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 18, 2010 12:27:43 GMT -8
I have created this applet in java with gif images that are animated and my applet flickers really bad. Is there anyway I can fix this and how?
Here is my code so far:
Removed Code:
Removed Code
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 19, 2010 12:56:23 GMT -8
Does anyone have any idea how to stop my applet from flickering really bad I tried double buffering and repainting but I don't think I got the code right or something before so I removed it....Any help is appreciated. Thanks
|
|
bigrandy
inherit
-3943335
0
Nov 29, 2024 23:45:18 GMT -8
bigrandy
0
January 1970
GUEST
|
Post by bigrandy on Mar 19, 2010 13:46:02 GMT -8
Does anyone have any idea how to stop my applet from flickering really bad I tried double buffering and repainting but I don't think I got the code right or something before so I removed it....Any help is appreciated. Thanks Well, you are the " Support Professional" can we get a link to it in action? Otherwise maybe this would fare better in the programming board?
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Mar 19, 2010 14:03:51 GMT -8
Flickering in animations is generally caused due to lack of buffering. Unfortunately I don't know Java, nor do I care to research the disease of a language. But I will explain to you what double buffering is. Double buffering means that instead of drawing straight to the screen/window/whatever-output-you're-using, you draw to a temporary buffer (a GIF, BMP, etc. etc.) and then draw that temporary buffer to the screen. So what you'd want to do is create an image (the buffer) the size of the screen and output all of your images to that. And at the end, you output the buffer to the screen. This will reduce the number of times you're updating the screen, thus making the animation smoother.
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 19, 2010 18:07:47 GMT -8
Does anyone have any idea how to stop my applet from flickering really bad I tried double buffering and repainting but I don't think I got the code right or something before so I removed it....Any help is appreciated. Thanks Well, you are the " Support Professional" can we get a link to it in action? Otherwise maybe this would fare better in the programming board? That name does apply in this particular field lol Where could upload it at the show you? Flickering in animations is generally caused due to lack of buffering. Unfortunately I don't know Java, nor do I care to research the disease of a language. But I will explain to you what double buffering is. Double buffering means that instead of drawing straight to the screen/window/whatever-output-you're-using, you draw to a temporary buffer (a GIF, BMP, etc. etc.) and then draw that temporary buffer to the screen. So what you'd want to do is create an image (the buffer) the size of the screen and output all of your images to that. And at the end, you output the buffer to the screen. This will reduce the number of times you're updating the screen, thus making the animation smoother. Thanks, I know what double buffering is and I have tried to use it but I haven't had to luck so I deleted it from my code...I think I probably set it up wrong...
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 20, 2010 18:34:00 GMT -8
Can anyone help me lol or am I stuck? Thanks
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 21, 2010 2:32:12 GMT -8
Try taking this discussion to the General Programming Discussion board, you are more likely to get a response from there as this board is mainly concerned about JavaScript. If you wish, the topic can be moved across for you.
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Mar 21, 2010 10:37:02 GMT -8
Try taking this discussion to the General Programming Discussion board, you are more likely to get a response from there as this board is mainly concerned about JavaScript. If you wish, the topic can be moved across for you. Yes, please move my topic for me if you don't mine. I get confused on which boards here or for what lol Thanks you so much
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Apr 10, 2010 8:22:44 GMT -8
Does anyone know why my programs still flickers pretty badly? I tried double buffering but not sure I did it right...
Here is my new code:
Removed Code:
Removed Code
|
|
inherit
27278
0
Aug 3, 2024 9:13:18 GMT -8
Josh
Apple iManiac / eBay Addict
12,347
July 2004
jwd41190
|
Post by Josh on Apr 17, 2010 10:35:47 GMT -8
Anyone?\
Done...This can be closed. Thanks
|
|