Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (707)
Games in Android Showcase (206)
games submitted by our members
Games in WIP (781)
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] 2 3 ... 115
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-01-10 10:05:13
I quickly skimmed this (a list of java libs and such): https://github.com/akullpp/awesome-java
2  Game Development / Performance Tuning / Re: Tips for reducing frame rate spikes due to JIT early in a game? on: 2016-12-26 17:07:43
client/server VM is just a 32-bit VM thing.  Everything's server VM for 64-bit.
3  Game Development / Performance Tuning / Re: Most optimal collision detection algorithms on: 2016-12-14 06:29:24
Yeah, it depends too much on data.  For wide-open areas then a uniform grid is a nice easy choice and will perform reasonably.  Couple that with sweep-and-prune for the broad pass.
4  Game Development / Performance Tuning / Re: Most optimal collision detection algorithms on: 2016-12-14 01:14:06
Yeap...
5  Game Development / Performance Tuning / Re: Has anyone tried creating an optimized HashMap implementation? on: 2016-12-14 00:50:50
In C like using bucketed cuckoo hashing.
6  Game Development / Performance Tuning / Re: Most optimal collision detection algorithms on: 2016-12-13 20:58:14
@VoidBuffer - It all depends on how you can move less data (and not cache-thrash) and keep the local neighborhood 'n' small.

@bmanmcfly - different topic..this is broad-phase.  SAT's only claim to fame is it's easy to implement (that's not a bad thing). 
7  Game Development / Performance Tuning / Re: Most optimal collision detection algorithms on: 2016-12-13 08:52:50
Optimal collision detection (as noted in link) is going to be a function of the distribution of objects and how it evolves over time combined with chosen method and how it's actually implemented.  So a quad-tree can be the best choice...but it actually very quite hard to implement a good quad-tree (or forest of them more likely).  And in the case where it would be "best" something much simpler to correctly implement is likely to be approaching the same performance.
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-07 19:45:50
Since I haven't mentioned cuphead in awhile:  It has an approximate release date - http://studiomdhr.com/cuphead-coming-mid-2017-2/

Are you a developer on this game?
Nope...just not my kinda game but still looks awesome.
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-24 18:55:37
Interesting...that probably mean this isn't new to everyone.  (I get the same error BTW...but no surprise I've the latest eclipse).

EDIT: Figure 3 does compile, but not Figure 4.
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-24 18:42:23
I hadn't tried it yet.  You try javac?
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-24 18:14:54
Oh!  Never saw this flaw.  https://t.co/jgra2x0dZX
12  Game Development / Newbie & Debugging Questions / Re: Quaternion in Game Development. on: 2016-11-20 12:50:25
Oh, you're right. Thanks! That was a good hint. I gotta go change some code...
Representing uniform scaling in a quaternion works nicely when the conversion as layed out here is used (the matrix representation right before the sentence "since qw*qw + qx*qx+ qz*qz+ qy*qy = 1 this gives").
Apparently, one also does not need to renormalize the quaternion when applying any rotations. This is really nice. Applying uniform scaling to any quaternion is then just scalar-multiplying by sqrt(scaleFactor).

Yeap.  Since rotation is P' = QPQ-1 (which eliminates any scale factors) or QPQ* which will scale by magnitude of Q squared and these compose as expected.
13  Game Development / Newbie & Debugging Questions / Re: Quaternion in Game Development. on: 2016-11-20 01:17:37
On quaternions and scaling...yeah probably not worthwhile computationally.  The math's all wrong though.  The issue is if you convert to a matrix..the conversion code is assuming that it's a unit quaternion.
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-10 19:06:25
I bet he gets tired of it after 1 year.
Don't count on it.  Assuming he hasn't lost his mind...than we're talking about the same Trump as that of the 80s.  Hell he even sketched what he would do if he ever ran for president sometime in the 90s.
15  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-09 15:48:05
Even if he eliminates his hate speech and pushes totally moderate agenda and none of his WTF things...it's still a disaster.  Hate of others is now OK.  Hate of america is flamed. 
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-10-30 20:42:13
Since I haven't mentioned cuphead in awhile:  It has an approximate release date - http://studiomdhr.com/cuphead-coming-mid-2017-2/
17  Discussions / General Discussions / Re: It's official: Java 9 will support Ahead-Of-Time (AOT) compilation on: 2016-10-28 11:44:53
According to the updated JEP you can choose the compilation level...so already have profile guided at AOT.
18  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.9.0 Pre-Release on: 2016-10-27 13:53:03
Yeah you can just drop the high bits.
19  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.9.0 Pre-Release on: 2016-10-27 13:13:30
Well if 64-bit operations are ok...xoroshiro is state-of-the-art and very fast (notice the result is ready after one addition). 
20  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.9.0 Pre-Release on: 2016-10-27 12:44:21
The code for the sampling all looks good.  I'd think about changing the random number generator.  

xorshiro maybe: http://xoroshiro.di.unimi.it/

A maybe problem here is it's 64-bit (thinking android).  I tossed up a few other various choices here: https://github.com/roquendm/JGO-Grabbag/tree/master/src/roquen/math/rng

EDIT: Seems I drop the ball on some of mine.  I can restructure these to be faster on average for real use patterns.
21  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-23 09:28:02
That's great news! Are these trade-offs done automatically by sollya or does it need manual tuning?

You have to make the choices about how to reduce the range.  The tricky bit here is that they mostly involve division and java doesn't give access to 1/x approximation operations.

I had a rather unique situation where I was using a "circular heightmap", a 1D heightmap that wraps around a circle with a certain resolution.
Does the heightmap actually model a perturbed circle?  If so there are options of doing something other than equi-angluar.  That way you can move to a cheaper mapping function.
22  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-22 18:09:01
Yes.  The trick is range reduction since atan doesn't converge as fast.  So there are many more choice trade-offs.
23  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-22 15:59:12
I forgot to note in the pastebin code that brute force error checking isn't needed.  Say for polynomial methods you can compute where the error should be zero and verify that within a couple of ULPs of these points that the sign of the error does change.  Likewise compute where the error should be maximum and find the peaks.  Much faster and exact error measures.

EDIT: Oh and that code/output should be printing 'abs error' and not 'rel error'.
24  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-22 02:01:28
http://pastebin.java-gaming.org/e291e8d814b10


func   @                              : rel-error                      : ulp-dif  bits
orig   @   2.356194 (   0x1.2d97c6p1) : 5.881720e-09 (0x1.9430508p-28) : 52977825 27
horner @   2.356194 (   0x1.2d97c6p1) : 5.881720e-09 ( 0x1.94304fp-28) : 52977822 27
range  @   1.570795 (   0x1.921f9cp0) : 6.017409e-12 (    0x1.a77p-38) :    54200 37
sollya @   1.274948 (   0x1.4662fap0) : 4.440892e-16 (      0x1.0p-51) :        4 50

reduce @   0.651724 (   0x1.4daecp-1) : 3.338118e-09 ( 0x1.cac992p-29) : 30067090 28
25  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-20 10:48:57
Thinking two things really:  the actual error is more than theagentd found AND they are both at the same input value.
26  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-20 07:27:41
Since there are no comments.  Doesn't anyone notice anything "odd" about these results?
27  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-19 18:24:27
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
private static void brutex()
{
  float v = .1f;
  double e = 0.f;
  double ev = v;
  do {
    double r1 = sin_theagentd_arith(v);
    double r2 = Math.sin(v);
    double d  = Math.abs(r1-r2);
   
    if (d > e) {
      e  = d;
      ev = v;
    }
   
    v = Math.nextUp(v);
  } while(v <= PI);
  System.out.println(e + " @ " + Double.toHexString(ev) + " :" + sin_theagentd_arith(ev) + " " + Math.sin(ev));
}


5.881720110956223E-9 @ 0x1.2d97c6p1 :0.7071069396761204 0.7071069455578405
5.881719777889316E-9 @ 0x1.2d97c6p1 :0.7071069396761207 0.7071069455578405
28  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-19 07:49:53
Use Horner's form:  Less instruction issues and more accurate.  If you wanted more speed (call-site dependent) you could convert to Estrin's method at a very small accuracy reduction.  Rewritten in Horner's:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
private static double sin_theagentd_arith(double x)
{
  double xi = Math.floor((x + Math.PI/4.0) * 1.0/Math.PI);
  double x_ = x - xi * Math.PI;
  double sign = ((int)xi & 1) * -2 + 1;
  double x2 = x_ * x_;

// double sin = x_;
// double tx = x_ * x2;
// sin += tx * c1; tx *= x2;
// sin += tx * c2; tx *= x2;
// sin += tx * c3; tx *= x2;
// sin += tx * c4; tx *= x2;
// sin += tx * c5; tx *= x2;
// sin += tx * c6; tx *= x2;
// sin += tx * c7;
// return sign * sin;

  double sin;
 
  x_  = sign*x_;
  sin =          c7;
  sin = sin*x2 + c6;
  sin = sin*x2 + c5;
  sin = sin*x2 + c4;
  sin = sin*x2 + c3;
  sin = sin*x2 + c2;
  sin = sin*x2 + c1;
  return x_ + x_*x2*sin;
}
29  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-17 22:23:21
No..I just need to approximate a function once in a blue moon.

And since I forgot above, here's the Robin Green papers.  These assume minimal background in any of the topics.
https://basesandframes.wordpress.com/2016/05/17/faster-math-functions/
30  Java Game APIs & Engines / Engines, Libraries and Tools / Re: JOML 1.8.0 Release on: 2016-10-17 12:12:57
Yeah I just did a REPL session. 

I tossed together a script example: http://pastebin.java-gaming.org/aee29618e4d11
The output of the script looks like this: http://pastebin.java-gaming.org/ee2917e8d411b

Pages: [1] 2 3 ... 115
 
Galdo (227 views)
2017-01-12 13:44:09

Archive (396 views)
2017-01-02 05:31:41

0AndrewShepherd0 (854 views)
2016-12-16 03:58:39

0AndrewShepherd0 (791 views)
2016-12-15 21:50:57

Lunch (928 views)
2016-12-06 16:01:40

ral0r2 (1156 views)
2016-11-23 16:08:26

ClaasJG (1259 views)
2016-11-10 17:36:32

CoffeeChemist (1301 views)
2016-11-05 00:46:53

jay4842 (1385 views)
2016-11-01 19:04:52

theagentd (1206 views)
2016-10-24 17:51:53
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
java-gaming.org 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‑gaming.org
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!