Java-Gaming.org
Java4K winners:
[
by our judges
|
by the community
]
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members
News
: Read the
Java Gaming Resources
, or peek at
the official Java tutorials
Home
Help
Search
Login
Register
Java-Gaming.org
>
Game Development
>
Game Play & Game Design
>
Very slow start up
Pages: [
1
]
Print
Very slow start up
(Read 830 times)
0 Members and 1 Guest are viewing this topic.
ritonda66
JGO n00b
Posts: 8
Very slow start up
«
on:
2012-01-21 15:41:26
»
my source
https://github.com/ritonda66/shooter/blob/master/src/ch/shooter/gamePanel.java
problem:
when im clicking on the jar. nothing happends for 5-10 secs then it opens. BUT WHY???
Waterwolf
JGO n00b
Posts: 36
Medals: 2
Re: Very slow start up
«
Reply #1 on:
2012-01-21 17:00:21
»
Because the images are loaded in a static initializer block before the gui is shown. You could just load them locally instead of downloading from internet
ra4king
JGO Kernel
Posts: 3160
Medals: 196
I'm the King!
Re: Very slow start up
«
Reply #2 on:
2012-01-21 17:19:05
»
@Waterwolf
They are not loaded in a static initializer block, those Image variables are instance variables.
@OP
Your internet speed isn't extremely fast. It takes 5-10 seconds to download all those images
-Roi
Doodle Jump online!
Follow me on Twitter!
Games published by our own members! Go get 'em!
Waterwolf
JGO n00b
Posts: 36
Medals: 2
Re: Very slow start up
«
Reply #3 on:
2012-01-21 17:21:38
»
Ah crap, somehow misread that they are static. They're loaded in constructor then
ritonda66
JGO n00b
Posts: 8
Re: Very slow start up
«
Reply #4 on:
2012-01-21 17:21:56
»
tyvm works now
ra4king
JGO Kernel
Posts: 3160
Medals: 196
I'm the King!
Re: Very slow start up
«
Reply #5 on:
2012-01-21 17:26:16
»
What works? The only problem you had was the long startup
-Roi
Doodle Jump online!
Follow me on Twitter!
ritonda66
JGO n00b
Posts: 8
Re: Very slow start up
«
Reply #6 on:
2012-01-22 05:34:23
»
its faster now
jammas615
Jr. Member
Posts: 70
Re: Very slow start up
«
Reply #7 on:
2012-01-22 17:31:18
»
Quote from: ritonda66 on
2012-01-21 15:41:26
when im clicking on the jar. nothing happends for 5-10 secs then it opens. BUT WHY???
But is 5-10 seconds going to kill you?
My site:
http://www.pixelnightmares.com/
Download my games:
http://www.pixelnightmares.com/games/
Pages: [
1
]
Print
Jump to:
Please select a destination:
-----------------------------
Games Center
-----------------------------
=> Featured Games
=> Showcase
=> Contests
===> LWJGL16k - 2011
===> 4K Game Competition - 2012
===> JGO Comp Petite
===> Finished Contests
=====> 4K Game Competition - 2011
=====> 4K Game Competition - 2010
=====> 4K Game Competition - 2009
=====> 4K Game Competition - 2008
=====> 4K Game Competition - 2007
=====> 4K Game Competition - 2006
=====> 4K Game Competition - 2005
=====> Tiny Game 2010
=====> JGO Comp 2009
=====> 16K LWJGL Competition - 2005
=====> Java Technology Game Development Contest - 2004
-----------------------------
Discussions
-----------------------------
=> General Discussions
===> Suggestions
=> Business and Project Discussions
===> Jobs and Resumes
===> Community & Volunteer Projects
=> Miscellaneous Topics
-----------------------------
Game Development
-----------------------------
=> Newbie & Debugging Questions
=> Articles & tutorials
=> Game Play & Game Design
=> Game Mechanics
===> Artificial Intelligence
=> Networking & Multiplayer
=> Performance Tuning
=> Shared Code
-----------------------------
Java Game APIs & Engines
-----------------------------
=> Engines, Libraries and Tools
===> Java 3D
===> JInput
===> jMonkeyEngine
===> Xith3D Forums
===> Tools Discussion
=> Java 2D
===> JavaFX
=> OpenGL Development
===> JOGL Development
===> LWJGL Development
=> Java Sound & OpenAL
===> JOAL Development
=> Java on Mobile Devices
===> Android
===> J2ME
Loading...