Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (775)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Using Math in Java FX is ok?  (Read 730 times)
0 Members and 1 Guest are viewing this topic.
Offline pavul

Junior Devvie


Medals: 4
Exp: 4 years



« Posted 2018-08-28 15:29:37 »

hi everyone, I know there are other game libraries that use fast Math classes, I use common Math class, so my question is:

is ok if we use Math class, or do I need to look for a FastMath library to use it in my projects?

its better not know why it works, that know why is not working
Offline VaTTeRGeR
« Reply #1 - Posted 2018-08-28 15:57:10 »

It's ok as long as you meet your performance goals on the slowest system you want to support, your players won't decompile your game and look at which math classes you use and judge you based on that.

BUT it's always good to have some performance buffer and most custom java math libraries are just as simple to use as the standard math lib, they might even have some additional features (gamedev specific functions) that make your life much easier, so i would suggest you just use whatever custom math lib catches your eye.

LibGDXs math library for example is just as easy to use and has some additional features, so that's one candidate, but there are even better ones, it's all up to you.
Offline princec

« JGO Spiffy Duke »


Medals: 1059
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2018-08-28 16:43:40 »

The current state of the art in maths libraries is JOML - highly recommended. Doubt you need it for a JavaFX application though!

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pavul

Junior Devvie


Medals: 4
Exp: 4 years



« Reply #3 - Posted 2018-08-29 14:56:40 »

I was looking yesterday and found two options:
1.- JAFAMA
2.- apache FastMath

I will do little research and will check LIBGDX math as well, however libgdx math should be better option due is for a game library/emgine

its better not know why it works, that know why is not working
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (47 views)
2018-11-16 13:46:03

hadezbladez (57 views)
2018-11-16 13:41:33

hadezbladez (37 views)
2018-11-16 13:35:35

hadezbladez (21 views)
2018-11-16 13:32:03

EgonOlsen (1931 views)
2018-06-10 19:43:48

EgonOlsen (1942 views)
2018-06-10 19:43:44

EgonOlsen (1292 views)
2018-06-10 19:43:20

DesertCoockie (1736 views)
2018-05-13 18:23:11

nelsongames (1415 views)
2018-04-24 18:15:36

nelsongames (2073 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!