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
>
Shared Code
>
Once again! fast MappedObjects implementation
Pages:
1
...
5
6
[
7
]
Print
Once again! fast MappedObjects implementation
(Read 15980 times)
0 Members and 1 Guest are viewing this topic.
Spasi
JGO Ninja
Posts: 589
Medals: 26
Molon Lave
Re: Once again! fast MappedObjects implementation
«
Reply #180 on:
2011-07-24 18:49:09
»
I'm well aware of what the major use for this library is. For my particular needs I don't even care about Java computation performance, I do almost everything with OpenCL. I just wanted to share my findings for people that may see this library and think all their performance problems are magically gone, just because there's no bounds checks with Unsafe or whatever. Since computation has to happen eventually, there may be a temptation to do it on mapped data, which may lead to the performance gotchas I described.
princec
« League of Dukes »
JGO Kernel
Posts: 8089
Medals: 96
Eh? Who? What? ... Me?
Re: Once again! fast MappedObjects implementation
«
Reply #181 on:
2011-07-24 18:58:32
»
Indeed: but look at it from this perspective -
using
mapped objects is so much vastly more simple and less error-prone than directly peeking and poking into ByteBuffers that simply getting it to roughly the same speed is a massive win. If by some miracle it goes twice as fast or whatever - that's just gravy!
Cas
Play Revenge of the Titans
-
Play Titan Attacks
-
Play Droid Assault
Pages:
1
...
5
6
[
7
]
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...