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
>
Performance Tuning
>
System.arraycopy
Pages: [
1
]
Print
System.arraycopy
(Read 2537 times)
0 Members and 1 Guest are viewing this topic.
Absolution
JGO n00b
Posts: 31
Java games rock!
System.arraycopy
«
on:
2002-12-06 07:15:42
»
Is System.arraycopy safe to use in your main loop (i.e. as it applies to GC)?
Herkules
JGO Kernel
Posts: 1522
Medals: 1
Friendly fire isn't friendly!
Re: System.arraycopy
«
Reply #1 on:
2002-12-06 09:05:09
»
Does not get the question right.
System.arrayCopy() copies one array into another. This has nothing to do with GC.
HARDCODE
--
DRTS/FlyingGuns/JPilot/JXInput
-- skype me: joerg.plewe
leknor
Full Member
Posts: 218
ROCK!!!
Re: System.arraycopy
«
Reply #2 on:
2002-12-07 11:35:18
»
Herkules: He's asking if System.arraycopy() creates garbage.
Absolution: My understanding is that arraycopy is intended to be used in performance critical code. So assume yes unless someone can proove me wrong.
Games published by our own members! Go get 'em!
Herkules
JGO Kernel
Posts: 1522
Medals: 1
Friendly fire isn't friendly!
Re: System.arraycopy
«
Reply #3 on:
2002-12-08 03:45:19
»
Quote
Herkules: He's asking if System.arraycopy() creates garbage.
Sure, got that, but why should copying an array produce garbage??
HARDCODE
--
DRTS/FlyingGuns/JPilot/JXInput
-- skype me: joerg.plewe
princec
« League of Dukes »
JGO Kernel
Posts: 8089
Medals: 96
Eh? Who? What? ... Me?
Re: System.arraycopy
«
Reply #4 on:
2002-12-08 06:05:16
»
Well, there's a lot of unexpected places where Java creates a few naughty objects. But this isn't one of them
Cas
Play Revenge of the Titans
-
Play Titan Attacks
-
Play Droid Assault
Absolution
JGO n00b
Posts: 31
Java games rock!
Re: System.arraycopy
«
Reply #5 on:
2002-12-08 08:15:52
»
Thanks, that's helpful. Does anybody know exactly how this method works? Is it just doing a copy of the reference values in the src objects to those in the dest objects?
leknor
Full Member
Posts: 218
ROCK!!!
Re: System.arraycopy
«
Reply #6 on:
2002-12-08 11:17:13
»
It does a shallow copy.
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...