Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (672)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Performance Tuning / Re: Char array over String? on: 2003-09-22 18:45:43
thanks for the help.  Good thoughts
2  Game Development / Performance Tuning / Char array over String? on: 2003-09-22 16:39:31
I've read on the java performance tuning section at that there's an increase in performance when char array's are used.  Does anyone feel that you should substitute all your strings for char array's whenever possible?  If so, how would you use them because they won't expand.  I'm thinking maybe arrayCopy would be helpful there.  Just wanted to see what everyone's opinion was.  thanks
3  Game Development / Performance Tuning / Re: Java's Unsafe class on: 2003-08-23 13:46:46
Good thinking.  Thanks for the help
4  Game Development / Performance Tuning / Re: Java's Unsafe class on: 2003-08-22 11:57:26
When I allocate memory with the Unsafe class what exactly is it doing?  I'm really just experimenting with the class.  And the other thing is that when i call unsafe.addressSize() it always returns 4 for some odd reason.  Anyone know how this class works? Huh
5  Game Development / Networking & Multiplayer / Re: java.nio cyclic buffer? on: 2003-08-20 22:23:48
i say just make it public,recompile and stick the class back into your rt.jar.    Wink
6  Game Development / Performance Tuning / Re: Java's Unsafe class on: 2003-08-14 11:39:16
yeah this is true.  It was just something i was toying around with.   Grin
7  Game Development / Performance Tuning / Re: Java's Unsafe class on: 2003-08-14 11:12:54
Thanks for your help.  The only reason I was curious about that Unsafe class was my friend wanted to make a stringBuffer class using JNI and it turned out being alot slower than even your normal stringbuffer.  I'm guessing the JNI calls are expensive.  so we went hunting in the nio classes and found no native methods and that lead to the Unsafe class.  Only problem is that security exception that i'm getting.  Guess it's unusable at this point.   :-/
8  Game Development / Performance Tuning / Java's Unsafe class on: 2003-08-14 00:02:51
Anyone have experience using sun.misc.Unsafe ?  I tried using it today and it's giving an error when i run it.  

import sun.misc.*;

public class UnsafeTester {
  private static final Unsafe unsafe = Unsafe.getUnsafe();
  public static void main(String[] args) {
    long ptr = unsafe.allocateMemory(512);
      System.out.println("Unsafe: " + unsafe.toString());

Caused by: java.lang.SecurityException: Unsafe
      at sun.misc.Unsafe.getUnsafe(
      at garbage.UnsafeTester.<clinit>(
Exception in thread "main"

I'm not sure exactly how I should go about tackling this one so any help would be great.   Wink
Pages: [1]
IanParcs (48 views)
2016-04-18 14:18:53

KaiHH (46 views)
2016-04-18 08:35:41

KaiHH (76 views)
2016-04-15 12:43:58

theagentd (79 views)
2016-04-14 02:16:17

theagentd (94 views)
2016-04-14 02:15:43

IanParcs (106 views)
2016-04-12 03:51:16

IanParcs (48 views)
2016-04-12 03:50:03

IanParcs (44 views)
2016-04-12 03:49:54

IanParcs (39 views)
2016-04-12 03:49:52

IanParcs (49 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!