Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (726)
Games in Android Showcase (216)
games submitted by our members
Games in WIP (796)
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 ... 116
1  Game Development / Networking & Multiplayer / Re: Best - and currently active - networking lib? on: 2017-05-02 12:23:07
Aeron is designed for extremely low latency and destroys every other library in that metric.
It's too bad Martin Thompson stopped writing blog entries.  Still some great stuff there:  http://mechanical-sympathy.blogspot.fr/
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-05-01 21:24:50
Huh...this will be interesting: https://www.infoq.com/news/2017/05/no-jigsaw
3  Game Development / Performance Tuning / Re: Pathfinding over too large grid on: 2017-04-27 02:54:46
A course grain graph of waypoints?
4  Game Development / Shared Code / Re: Basic Image Quantization into 256 colors in 90 lines on: 2017-04-23 06:15:41
RBG isn't a good space to measure color differences.  Web search: "perceptual color spaces"  You'll also get better results if you don't simply map each pixel directly to a palette entry.  There are various methods, search "error diffusion"
5  Game Development / Game Mechanics / Re: Random weighted number between two numbers? on: 2017-04-14 11:03:14
Note that the Gaussian distribution isn't bounded...not sure if that's what you want.
6  Game Development / Game Mechanics / Re: Random weighted number between two numbers? on: 2017-04-14 09:48:51
Of course wikipedia is about as clear as ever:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
// symmetric triangle distribution: result on (-1,1)
public static float symmetricTriangular()
{
   return nextFloat()-nextFloat());  // from random number generator of choice
}

// symmetric triangle distribution: result on [lo, hi)
public static float symmetricTriangular(float lo, float hi)
{
    float halfDiff = 0.5f*(hi-lo);
    float triDist  = nextFloat()+nextFloat();   // triangle on [0,2)
    return halfDiff*triDist + lo;
}
7  Game Development / Game Mechanics / Re: Random weighted number between two numbers? on: 2017-04-14 09:33:34
The easiest the triangle distribution (https://en.wikipedia.org/wiki/Triangular_distribution), but it depends on how you what distribution curve to look.
8  Game Development / Performance Tuning / Re: Question: Branch Prediction Alleviating Performance Loss in Looped Conditionals? on: 2017-04-09 06:57:26
Of course for perf it's really hard to generalize.  On average a switch will win when using it can allow optimizations that wouldn't otherwise occur like not spilling registers between inside/outside the statement.  So the amount of work inside/outside is a really bad guess.
9  Game Development / Performance Tuning / Re: Question: Branch Prediction Alleviating Performance Loss in Looped Conditionals? on: 2017-04-08 20:55:45
Sound like using a @FunctionalInterface might be the thing to do.

"let's say that you have a loop that repeatedly calls a virtual function:"
If it can determine that the actual number of targets is one then it becomes a direct call, two or less it become an 'if' test between them, otherwise the standard read address and jump to it thing.
10  Game Development / Performance Tuning / Re: ArrayList$Itr and Escape Analysis on: 2017-03-06 13:13:11
You don't need a debug VM, just the disasm DLL (which Oracle can't distribute).  I posted a link at some point, but am unable to find it with a search (and don't have a copy ATM)

EDIT: Oh the file is 'hsdis-amd64.dll' and probably someone has a copy. 
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-02-19 18:49:58
My thinking was more "how to think about costs" than the specific example.  BTW, the original (not-complete) sequence is found here: http://www.codercorner.com/
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-02-19 10:58:14
RYG did an easy to understand breakdown of out-of-order optimization of some code by PhysX author Pierre Terdiman,
https://gist.github.com/rygorous/fdd41f45b24472649aaeb5b55bbe6e26?ts=4
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2017-02-13 19:40:52
https://twitter.com/Jonathan_Blow/status/831225844655796226

edit: or just click here: https://www.humblebundle.com/freedom
14  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
15  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.
16  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.
17  Game Development / Performance Tuning / Re: Most optimal collision detection algorithms on: 2016-12-14 01:14:06
Yeap...
18  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.
19  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). 
20  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.
21  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.
22  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.
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-24 18:42:23
I hadn't tried it yet.  You try javac?
24  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-24 18:14:54
Oh!  Never saw this flaw.  https://t.co/jgra2x0dZX
25  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.
26  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.
27  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.
28  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. 
29  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/
30  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.
Pages: [1] 2 3 ... 116
 
Archive (291 views)
2017-04-27 17:45:51

buddyBro (479 views)
2017-04-05 03:38:00

CopyableCougar4 (925 views)
2017-03-24 15:39:42

theagentd (938 views)
2017-03-24 15:32:08

Rule (950 views)
2017-03-19 12:43:22

Rule (918 views)
2017-03-19 12:42:17

Rule (920 views)
2017-03-19 12:36:21

theagentd (981 views)
2017-03-16 05:07:07

theagentd (892 views)
2017-03-15 22:37:06

theagentd (690 views)
2017-03-15 22:32:18
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!