Java-Gaming.org Hi !
Featured games (88)
games approved by the League of Dukes
Games in Showcase (681)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (744)
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 ... 58
1  Game Development / Shared Code / Re: Quark - Game Framework on: 2016-06-22 09:35:06
Cool stuff, both demos displayed for me and I was able to move with WASD.
I've never heard of TeaVM before. An interesting java byte-code to javascript compiler.
2  Games Center / WIP games, tools & toy projects / Re: Drift Team on: 2016-06-19 08:05:10
Cool game, controls and camera are nice.
Would be cool if you could bump the AI players. I couldn't seem to affect them at all when I tried to fish tail them or bump them off course.
3  Discussions / General Discussions / Re: Question: Bit-exact floats on different computers? on: 2016-06-16 11:19:16
KevGlass made a networked game using perfect determinism with strictfp that was a success. I forget which game that was but I found this old discussion about it on google:
http://www.java-gaming.org/index.php?topic=18183.0
[EDIT, found it]: http://www.java-gaming.org/topics/networking-a-dungeon-crawl/10516/msg/83159/view.html#msg83159

My little networked game used Roquen's approach where the server is always right. But I used a funny setup to update the clients where the server would send an old game world's state which was then updated to the present by the clients. This happened every few seconds.  
There's some detail about it here:
http://www.java-gaming.org/topics/multiplayer-top-down-view-shooter/18019/view.html

I wasn't happy with the end result since there was noticeable frame drop when the big update occurred to get the old server world up to date by applying all of the events and updates. But perhaps it could be refined some more.

I'll be interested to see how you deal with the networked game problem.
4  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 - LMDB bindings on: 2016-06-07 14:50:15
It's a pity to de-motivate the project lead like that. The main currency in open-source projects is respect, fame and the warm feeling of being altruistic and you've painted a sorry picture of them all! 

Whether or not LWJGL is truly lightweight, it's open source and can easily be forked.
If it's also modular as promised, even better. Making separate Git projects out of it is another good solution and can always be done in the future.

I don't think that Spasi's additions do any harm and he brings up interesting libraries that I'd never heard of before since they're not in the java ecosystem, but appear to be best practice in the C world. Putting together a bare bones 'best practice' game dev library is useful. I imagine that it's also easier to manage build scripts and forums and what-not by combining all these projects into one, saving Spasi's and others' precious time.

The huge amount of work that Spasi has put into LWJGL3 and the sister-projects should be celebrated. It is judging by his medal count! It's a shame to criticise him for going even further beyond the call of duty by including extra interesting stuff.

Quote
What LWJGL 3 is now is a vast collection of bindings, most of which are irrelevant to most people. What this means is that maintenance effort is going to be simply non-existent on it, and once you (eventually) grow tired of it, and you will, it'll just stagnate and get bitrot and become a large legacy which will distract people from otherwise creating separate efforts to solve specific issues.

I lost interest in maintaining LWJGL after a few years of developing on it, largely because it did everything I needed it to by that point, and also because I was seeing virtually no return on my efforts. I watched Markus accumulate two and a half billion dollars on the back of the literally months and months of effort I'd put in on the library he used to catapult himself into the realms of the unspeakably rich with barely so much as a thankyou, and that, for me, was the point at which I decided I couldn't be arsed with open source any more. I only have so much time left in the world and a lot of things I'd like to do, and making Markus richer wasn't on the list, so I diverted my efforts elsewhere. At some point, you too will find something more interesting and distracting, and you'll be leaving behind a huge, huge pile of stuff which no-one except you really cares too much about.
That's a shame that you feel that way. I think you know there's more to life than cash and fame, you probably just had a rotten day.
Think of all the mathematicians, scientists, engineers and writers who did amazing things and didn't get paid a cent for their life's work. They're not losers for being hard working and altruistic, they toiled for a purpose above themselves which added to their sense of life fulfillment and contributed to better living standards for everyone.
I mean, why do you think that the super wealthy always create universities named after themselves such as Stanford, Yale and Duke? It's a cliche, but making a ton of money above the average income doesn't fulfill life's higher aims.
As a LWJGL dev you should be proud to have contributed to the sensation that was Minecraft. Markus wasn't obliged to reflect any cash or fame on the downstream tech that he used. From memory he did have a credits page on Mincraft.net which linked to LWJGL and generated much interest there and also here at JGO, promoting Spasi and princec and all the other LWJGL devs which will help them get work in the future on anything graphics and game-related, in addition to respect in the game-dev community.
I'm sure Markus will drop in one day to remember the good old times and thank everyone who made tech like LWJGL.
Thanks to all the devs who made and continue to make lwjgl, java, javagaming.org, libgdx, and all the other incredible projects  Cool
5  Game Development / Game Mechanics / Re: Hardware-like software cursor. on: 2016-05-02 14:30:57
I (honestly) was thinking about that solution too - but it makes your (gameplay) framerate issues even worse, especially when vsync is on.
If it's dynamic enough and only activates at <half the monitor's refresh rate, it should be OK. It might improve the perceived responsibility.
Could you also just repaint the small cursor and the small 'dirty' section where it used to be painted? Might save some time.
6  Discussions / Miscellaneous Topics / St Petersburg paradox on: 2016-05-02 13:05:23
Hi,
This is not related to java, it's a maths problem.
I was wondering if any of the many smart maths people here could take a look at this problem about the St Petersburg paradox? I posted it on MathExchange but the dweebs there put my question 'on hold' for some reason.
http://math.stackexchange.com/questions/1767884/st-petersburg-paradox-cant-replicate-max-lottery-price-on-wikipedia#comment3608146_1767884


I've tried to verify the below quoted statements on wikipedia because I think they're mixed up: https://en.wikipedia.org/wiki/St._Petersburg_paradox#Expected_utility_theory

"For example, with log utility a millionaire should be willing to pay up to $10.94, a person with 1000 should pay up to 5.94, a person with 2 should pay up to 2, and a person with 0.60 should borrow 0.87 and pay up to 1.47."

According to my simulation of results in a spreadsheet, I calculate that a natural logarithm utility function player with an initial wealth of 1000 (not a million) would pay a maximum of 10.95, rounded to the nearest cent, to participate once in the game. Here is a link to my spreadsheet simulation calculations that demonstrate my above findings that a player with 1000 initial wealth will only pay 10.95, not 5.94 as is stated in the wikipedia article. http://www.keithwoodward.com/random/wiki/StPetersburgParadoxBernoulliUtilitySolution.xlsx
Apologies if I've made a silly error. Just wanted to check.

Cheers,
Keith
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-20 04:51:35
Azul Systems have ported OpenJDK to run natively on ARM - I'll be evaluating it soon. I imagine it to be more or less the same as the Oracle offering, performance wise (that is, very good indeed).

Cas Smiley
That's exciting. I found the announcement about it here:
https://www.azul.com/azul-systems-enhances-zulu-embedded-to-support-32-bit-arm-processors/
Too bad that I bought a 64 bit ARM board rather than a 32 bit one. This Azul JVM is only for 32 bit.
Will be interesting to hear your experiences with it on the raspberry pi 3.
8  Games Center / Showcase / Re: Amoebam - LD35 Compo Entry on: 2016-04-19 13:05:48
Worked well for me, chrome windows 7 html5.
Impressive for one weekend.
But I must say it's pretty hard! I could barely finish the last jump in the tutorial. And then trying to kill the enemies without being able to shoot while jumping was tough. But I expect that these little things are very hard to iron out in such a short time.
Nice work overall. Finishing a jam with something to show is a victory in itself  Cool
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-19 12:59:46
One thing that seems strange is this quote from the UDOOx86 kickstarter:
"Quad Core 64-bit new-generation x86 processors"
https://www.kickstarter.com/projects/udoo/udoo-x86-the-most-powerful-maker-board-ever

I thought x86 meant 32 bit?
Given that the processor is actually 64 bit, shouldn't the whole project be called the UDOOx64 rather than UDOOx86  Huh

10  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-19 12:51:30
Link share Wink
https://www.kickstarter.com/projects/udoo/udoo-x86-the-most-powerful-maker-board-ever?ref=category_recommended
Quote
$109
- X86
- Intel® Quad Core up to 2.24 GHz
- 4 GB of RAM
Estimated delivery: Nov 2016
X86 - Win ^^
Interesting board, thanks for sharing.
I see that the power consumption is said to be between 5 and 6 Watts which is only double or triple the ARM boards.
Here are the board's processor specs for the Intel® Celeron® Processor N3160 (2M Cache, up to 2.24 GHz).
http://ark.intel.com/products/91831/Intel-Celeron-Processor-N3160-2M-Cache-up-to-2_24-GHz

Interesting to see that it's a Celeron which as a desktop has a bad reputation for being slow but comparable to the ARM boards it must be relatively faster. I notice that this incarnation of the celeron was released in 2016Q1.
I hope this UDOOx86 board takes off and gives rise to lots more competition. One of the pains with the ARM boards is that few programs work with them. Even java is a pain to run on ARM since Oracle attempt to charge a licensing fee for the embedded Oracle JDK if you distribute a commercial program, unlike the regular JVM.
Also, I haven't been able to find an ARM64 headful (graphics capable) Oracle JVM, embedded or not. This is not a big problem since the openJDK arm64 JVM works headful but I suspect that it's slower than the oracle one.
Having a fast and power-efficient x86 board would be great from a software point of view since ordinary java will work on it. Also, the linux operating systems on x86 are fully functional and stable, unlike arm64 which is a big headache. For example, Chromium browser doesn't work on Ubuntu arm64 at the moment, among other driver and OS problems:
http://forum.odroid.com/viewtopic.php?f=29&t=20085
11  Game Development / Networking & Multiplayer / Re: Kryonet hosting? Where and how? on: 2016-04-12 06:51:24
I use ramnode and have been impressed with how cheap it is at $5 per month with 2 cores.
https://www.ramnode.com/vps.php
Also, in the last few years I've never had to restart the server. I guess that's Linux and Java stability.

Sounds like you're using libgdx, but if you end up running tomcat for a website, Java melody is very handy
http://javamelody.googlecode.com/

12  Games Center / Showcase / Re: Age of Conquest IV for PC, Mac, Linux, Android & iOS (Strategy/WEGO) on: 2016-04-07 14:16:57
Yes the scrolling works well, I was just commenting about how the window itself wasn't maximised, it took up only about 3/4 of the screen. Seems like a fully expanded default window would be better for immersion and so on. I am using windows 7.
13  Games Center / Showcase / Re: Age of Conquest IV for PC, Mac, Linux, Android & iOS (Strategy/WEGO) on: 2016-04-06 13:19:58
I downloaded it and it worked well. I must say I was very surprised and happy to see that the game is largely free, I was only expecting a demo.

The graphics, smoothness and responsiveness were great. The resizable-window was cool, rather than full screen exclusive. But perhaps the window should be maximised by default rather than small because then it would be easier to scroll by moving the mouse to the screen edge like a normal RTS. The ctrl - mouse wheel zoom is a great idea.

I did the tutorial and to be honest I didn't get a good feeling for how the game is supposed to work. I was a little confused about which territory was mine since I could see all territories. The intro mentioned Rome, but my people seemed to be in North Italy or France. I couldn't seem to control the Rome city. Perhaps a pulsating colour on your own territories would make it more obvious which cities are yours.
It's not clear how to move troops, I expected to slide them from where they were to where I wanted them to go, like Civ2. I did attack a town but then I couldn't find my troops anymore and couldn't seem to attack anything else. I had to google what the acronym WEGO is, it might be worth writing what it means.

Perhaps a 2 minute youtube video detailing how to do things before the tutorial would be nice.

Overall, it looks like a great game and I intend to give it more time this weekend.

EDIT: forgot to say, WEGO is a great idea, especially for multiplayer where it is super frustrating waiting for other players. Here's a definition for those  like me who don't know what WEGO is:
Quote
Turn-based games come in two main forms depending on whether, within a turn, players play simultaneously or take their turns in sequence. The former games fall under the category of simultaneously-executed games (also called phase-based or "We-Go"), with Diplomacy being a notable example of this style of game.
The WEGO system is this:   Everyone issues their orders for the turn at the same time.  You hit "End Turn" and all side's actions are made at the same time.  It eliminates the unbalanced turn-based part but also adds an extra dimension by attempting to anticipate what your enemy might do while your orders are being carried out.
http://www.matrixgames.com/forums/tm.asp?m=2284821&mpage=1&key=&#2286666
14  Games Center / Showcase / Re: Age of Conquest IV for PC, Mac, Linux, Android & iOS (Strategy/WEGO) on: 2016-04-06 09:34:18
This looks very impressive, similar to Risk and Diplomacy (board games) or Civilisation (PC).
Well done implementing the multiplayer aspect. I'm looking forward to trying it.
15  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-04 14:37:04
To add to Grunnts' point, students and teachers at uni are very interesting and you'll probably enjoy meeting new friends and colleagues more than anything else. It's one of the few real (non-internet) forums where you can have an in-depth technical debate about topics that you're interested in. I'm still studying and it's a high point in my week when I have a class with a knowledgeable teacher who can provide some new ways of looking at a problem that I wasn't aware of.

University is not actually a big commitment since you can quit at any moment and start work. If you find that the benefit of what you're learning is less than the cost of fees and missed wages then just take a break and start work.
But while you look for a job, you may as well start uni and see what it's like. That way you'll not have the fear of missing out.
16  Game Development / Performance Tuning / Re: Interesting talk from Cliff Click, Azul Systems on: 2016-03-30 19:21:49
Something interesting which you're probably already aware of is that Azul systems have the best garbage collector (GC) that there is, it takes far less time in total and runs for shorter times than any Sun/Oracle GC.
https://www.azul.com/products/zing/pgc/
https://www.azul.com/files/c4_paper_acm1.pdf

It surprises me how impressive Sun and Oracle's work is on the JVM yet they give it away for free and Sun obviously struggled to monetise the technology. Even Oracle appear to have bought java just to sue Google for using the java API in android.
Meanwhile, Azul makes a single GC improvement and patents the idea, and then is able to sustain what looks like a very successful business. It's bizarre how things work out.
17  Game Development / Performance Tuning / Re: Interesting talk from Cliff Click, Azul Systems on: 2016-03-30 15:10:45
It was interesting at the end when he mentioned the 'register allocator' and if I heard correctly, speculated that the JVM could deliver a further 5% speed boost with this.

I find it hard to believe that there are few big improvements left to be made in the JVM. Seems like there's always more that can be done.
18  Games Center / WIP games, tools & toy projects / Re: Tetradecagon on: 2016-03-27 00:37:46
There's always more work that can be put into any game. In my opinion the bigger danger is to polish a game that no-one actually wants to play, wasting lots of the developer's time. If the game were released earlier, then it can be modified in response to audience feedback.
In many ways Brynn has done the right thing: release early, release often. Since he's gauging public opinion already, he knows what is missing and can be improved. Perhapshe will take it onboard, or perhaps he will be inspired to make a new project. Either way I don't think that there's a problem.
The game looks good by the way, very arcade-like.
19  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 14:05:40
That's interesting how the server VM makes such a big difference.
Apparently tiered compilation is in OpenJDK:
http://blog.headius.com/2009/01/my-favorite-hotspot-jvm-flags.html?showComment=1236751860000#c7162839694547033952
I'll try it tomorrow and report back any speed differences.

Sounds like a nightmare with the GPIO. Being a cutting-edge new computer I can imagine that you might be the first person running into these troubles.
Can you hook up the pins manually somehow? Perhaps light them up with LED's or something to figure out how the layout has changed from the Rpi2 to the Rpi3.

I've wasted lots of time too. But most of my troubles are with linux and drivers. I have to reset my NetworkManager ubuntu app every 15 minutes to keep my usb wifi dongle working. I still haven't found a solution for it, and the wifi dongle was purchased with the odroid-c2 along with the linux distro so you'd think they'd have made sure it was compatible.
20  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 13:42:54
OpenJDK is running the server VM, and since it's linux I don't think there is a client version.
I also believe that there's no special client or server version of the oracle embedded jdk either, but maybe I'm wrong.
EDIT: Oops, the oracle jdk says it's an embedded client version. But I see no server version on the oracle download page.

Here are the System.getProperty() dumps for each.

OpenJDK:
java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=/usr/java/jdk1.8.0_73/jre/lib/aarch64, java.vm.version=25.73-b02, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=:, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/odroid/Desktop, java.runtime.version=1.8.0_73-b02, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/java/jdk1.8.0_73/jre/lib/endorsed, os.arch=aarch64, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Oracle Corporation, os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/java/packages/lib/aarch64:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=52.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=3.14.29-37, user.home=/home/odroid, sun.arch.abi=gnu, user.timezone=, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.8, java.class.path=., user.name=odroid, java.vm.specification.version=1.8, sun.java.command=SysPropsPrinter, java.home=/usr/java/jdk1.8.0_73/jre, sun.arch.data.model=64, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.X11.XToolkit, java.vm.info=mixed mode, java.version=1.8.0_73, java.ext.dirs=/usr/java/jdk1.8.0_73/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/java/jdk1.8.0_73/jre/lib/resources.jar:/usr/java/jdk1.8.0_73/jre/lib/rt.jar:/usr/java/jdk1.8.0_73/jre/lib/sunrsasign.jar:/usr/java/jdk1.8.0_73/jre/lib/jsse.jar:/usr/java/jdk1.8.0_73/jre/lib/jce.jar:/usr/java/jdk1.8.0_73/jre/lib/charsets.jar:/usr/java/jdk1.8.0_73/jre/lib/jfr.jar:/usr/java/jdk1.8.0_73/jre/classes, java.awt.headless=true, java.vendor=Oracle Corporation, file.separator=/, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.cpu.isalist=


Oracle embedded JDK:
java.runtime.name=Java(TM) SE Embedded Runtime Environment, sun.boot.library.path=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/arm, java.vm.version=25.73-b02, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=:, java.vm.name=Java HotSpot(TM) Embedded Client VM, file.encoding.pkg=sun.io, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/odroid/Desktop, java.runtime.version=1.8.0_73-b02, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/endorsed, os.arch=arm, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Oracle Corporation, os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/java/packages/lib/arm:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=52.0, sun.management.compiler=HotSpot Client Compiler, os.version=3.14.29-37, user.home=/home/odroid, sun.arch.abi=gnueabihf, user.timezone=, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.8, java.class.path=., user.name=odroid, java.vm.specification.version=1.8, sun.java.command=SysPropsPrinter, java.home=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre, sun.arch.data.model=32, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.X11.XToolkit, java.vm.info=mixed mode, java.version=1.8.0_73, java.ext.dirs=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/resources.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/rt.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/sunrsasign.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/jsse.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/jce.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/charsets.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/lib/jfr.jar:/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt/jre/classes, java.vendor=Oracle Corporation, file.separator=/, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.cpu.isalist=

Any news on your raspberry pi 3?  Cool
21  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 13:11:26
Gahh, problem solved. Sorry for the multiple posts.
I needed to install the embedded headful version of the jdk which wasn't listed on the regular Java SE downloads page. The embedded jdk is on its own special page for some reason, here:
http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html

Interestingly, the oracle embedded jdk is slower than openjdk when running my little java2d pathfinding and lighting demo Huh

java-8-openjdk-arm64 (8u73) runs at about 55fps.
ejdk1.8.0_73/linux_armv6_vfp_hflt (8u73) runs at about 35fps.

Here is a break down of how long the updating (pathfinding and lighting calcs which involve some Math.sin functions), rendering (using java2D) and sleep (System.sleep(1)) take with each jdk.
You can see that the update is much faster on openjdk (2.1ms per frame) compared with the oracle embedded jdk (8ms per frame). The rendering is faster too, but the sleep is the same.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
usr/lib/jvm/java-8-openjdk-arm64/bin/java
CodeTimer loop.run : mean period = 17.0901ms (count = 293, time = 5007.4107ms)
    update    12.31%    2.1037ms (count = 293, time = 616.3806ms)
    render    80.09%    13.6876ms (count = 293, time = 4010.4525ms)
    sleep     7.6%      1.2989ms (count = 293, time = 380.5777ms)

/usr/java/ejdk1.8.0_73/linux_armv6_vfp_hflt
CodeTimer loop.run : mean period = 27.2585ms (count = 184, time = 5015.5651ms)
    update    29.37%    8.0067ms (count = 184, time = 1473.2273ms)
    render    66.51%    18.1293ms (count = 184, time = 3335.7976ms)
    sleep     4.12%     1.1225ms (count = 184, time = 206.5402ms)


I wonder how the open jdk can be faster than oracle's embedded version? Strange
22  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 12:20:25
I tried including the option -Djava.awt.headless=false on the command line when I run java and now I get an:
1  
UnsatisfiedLinkError: Can't load library: /usr/java/jdk1.8.0_73/jre/lib/aarch64/libawt_xawt.so
23  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-23 12:08:49
Hi,
I have a 'java.awt.HeadlessException' problem with the Oracle ARM 64 JDK. The The OpenJDK version runs fine, no headless exceptions.
I installed Oracle JDK 8u73 "Linux ARM 64 Hard Float ABI" from their downloads page on to my odroid c2 and tried running my Java2D app that uses Swing/AWT and I got a HeadlessException.
Here's the page where I downloaded the jdk:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

The odroid is a 64-bit ARM computer running Ubuntu, and I know it's hard float since this directory exists: /lib/arm-linux-gnueabihf.
When I print System.getProperties() I see that java.awt.headless=true. Does anyone know how to fix this?
I notice that the 64-bit ARM jdk is only 74MB but the x64 version is 152MB. It made me think that the missing MB's are the missing AWT and Swing files. But when I look in look at rt.jar it shows that the javax.swing classes exist  Huh

I found this related post that our very own @Cas has answered:
https://www.raspberrypi.org/forums/viewtopic.php?t=15014&p=155705
But it's still a mystery to me how that person downloaded the headful jdk.
If I did download the headful version, then why does the jvm think it's headless?

Of course my odroid computer is not headless, I'm looking at the desktop on my TV.


Thanks for any pointers  Smiley
24  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-20 17:27:13
I received my odroid c2 in the mail!
I ordered it with a fancy emmc storage chip which is supposed to run faster than an SD card. It came pre-installed with Ubuntu 16.04 based on Kernel 3.14LTS installed with the MATE desktop.
It booted up quickly, and I was able to plug it into my TV using the HDMI port, and my mouse also worked straight out of the box which was a pleasant surprise.
The wifi usb antena I bought from the same company didn't work straight away unfortunately. It took a while to fix, and I'm not sure what fixed it exactly since I had to restart multiple times, plug in an ethernet cable, update ubuntu and the linux kernel and repeat before the wifi dongle would work. Even now it seems to drop out randomly, but I haven't investigated fully. Perhaps I'm missing another driver.
I wish the linux installation was stock ubuntu with unity rather than MATE, it would have made it easier to google for solutions to my problems.
One annoying thing is that everytime I shut the computer down, the time is reset to when I first booted it up. I'm not sure if this has something to do with the ordoid c2 not having a real time clock (RTC), or if it's a problem that I made when I updated the linux kernel or something else. It's quite annoying since the youtube website won't work in the Chromium browser, it complains that the https connection is corrupted. Fortunately the time updates itself using the internet after a minute or two and then everything is fine until the next time I boot up.

The system is faster than I expected and usable as a desktop, but I wouldn't call it fast. There appears to be about a half second delay before seeing any window after opening an app. I'm not sure if this is because the GPU has no drivers installed yet, or if it's because the 2Ghz processor is slow. Hopefully it's a GPU issue, which is supposed to be fixed in April:
http://forum.odroid.com/viewtopic.php?f=135&t=18683
"Ubuntu/Linux Mali GPU driver works only on the fbdev at this moment. X11 Mali drivers will be available in March or April."

The chromium browser works well, but the page loading is slow enough that I can see the css reflow the page as it loads jgo, for example. Unfortunately youtube videos on default HD 1080p settings are choppy with pauses every few seconds, but when I changed the youtube quality to 360p it ran fine. Apparently this slowness is due to the above issue of the VPU or GPU not having drivers yet.
Firefox 64bit bugs out and crashes though this is a known issue with the odroid c2, see the 'side notes' here:
http://forum.odroid.com/viewtopic.php?f=135&t=18683

Open JDK was pre-installed, so I tried running my old java2d apps. Unfortunately they immediately threw this error, but it was an easy fix by commenting out a line in a java properties file.
http://askubuntu.com/questions/695560/assistive-technology-not-found-error-while-building-aprof-plot

The little ordoid c2 ran my java2d-rendered lighting and pathing project (https://code.google.com/archive/p/straightedge/) in software quite well, painting the small 480x480 window at about 55fps using java 8 openjdk arm 64. I haven't tested on oracle's arm java version yet.
This compares to 250fps on my windows i7 laptop (hp dv6 7029tx) running oracle jdk 1.8.0.73. Using the java2d trace option (-Dsun.java2d.trace=log) I can see that the rendering is all done in software (java2d.loops) too so the results are somewhat comparable. I'll have to try running it with oracle java on the odroid rather than openjdk.

25  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-03-16 14:57:36
Isn't widespread use of instanceof seen as an anti-pattern?

https://www.google.com.au/search?q=instanceof+antipattern
26  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-16 13:51:26
That's interesting about the Picaxe, I'd never actually heard of it before or knew that these micro controllers were easily programmable. Looks like they can do quite complicated and funny things:
http://www.picaxe.com/Project-Gallery/Vehicle-Safe-Box/
http://www.instructables.com/id/Wireless-temperature-sensor/
But connecting to wifi sounds like a nightmare:
http://www.picaxeforum.co.uk/archive/index.php/t-10310.html

It's true that the odroid-c2's 2Ghz quad core CPU with 2GB RAM is overkill to turn on a sprinkler switch, but it was the only way my small brain could think of making it switchable remotely using a web browser on my mobile phone or a computer at work. I grow a few fruit trees like figs, mulberries, oranges and in the hot summer they will die if I leave them unwatered for a weekend while I'm away. I could buy an automatic electronic system for about $80 that is pre-programmed but it's actually not much cheaper than the odroid-c2 SOC ($80), a USB controlled relay (<$20), and a solenoid valve (<$30).
The other thing is that water here is relatively expensive at $2.2/kL and it takes 1.5kL to irrigate the plants on a hot day. Using the remote-controlled odroid-c2 computer I can water when it's needed, whereas a pre-programmed irrigation controller is more likely to over-water on days when it's raining and unnecessary.
Also with these flexible SOC computers, it's possible to hook up a weather station accessory, and maybe even a camera that uploads video or image stills to my server as a security record. But in reality I'll probably never get around to doing these extra things.

Quote
Certainly lots of great hardware out there for those that want to tinker with computer DIY.
It's an exciting new field with such cheap and powerful electronics.
27  Discussions / Miscellaneous Topics / Re: Go has been cracked! on: 2016-03-13 12:42:39
The hero of the meat heads strikes back:
http://www.reuters.com/article/us-science-intelligence-go-idUSKCN0WF0CN
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-03-11 23:20:08
Got my next SAT scores back. 2050. Pretty f**king bummed because I studied ridiculously hard and it's still 200+ points under what I need for the universities I want to go to.

Doesn't particularly help that there's all these cunts waving around their 2250+ scores in my face.
Don't worry, practice makes perfect.
With these multiple-subject tests it seems like they favour generalists much more than specialists such as programmers like us who tend to be very good at logic and maths but poor at writing and literature. This is because it's easier to improve your score in below average subjects per unit of time invested than in above average subjects. So people who are Jack of all trades but masters of none tend to score better overall. The downside is that these people may not excel in their subject specialty since they don't have the in depth skill or passion for it.
Also, remember that bill gates and many other highly successful entrepreneurs dropped out of university or never made it in the first place.
29  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-11 22:13:18
One advantage that the RaspberryPI now has over other boards is that it has a driver for running the full desktop OpenGL 2.0 on it (as opposed to just OpenGL ES), should make porting stuff to it much easier.
That's interesting, I didn't realise that difference.

Quote
Also that it has a bigger community, better documentation and so on.
Very true, and actually there's a silly bug or deficiency in the odroid c2 Ubuntu drivers where videos are played using software rendering rather than the GPU, making them run very slow on Ubuntu, however on Android this doesn't happen, they run in hardware. Hopefully this is fixed, but with the smaller community, maybe not.
30  Discussions / General Discussions / Re: Power consumption of desktops vs ARM SOC's such as Odroid-C2 or Rpi3 on: 2016-03-11 16:59:14
Oh thats great. i'd like to get an rpi3 too, but the price is very high at the moment on eBay.
Here's an interesting benchmark comparing the performance of an rpi1 and 2 against some desktops by running Doom and quake. I wonder how fair this is considering that these games were optimised for desktop. I also wonder how the rpi3 or odroid ç2 compare

PS: the odroid c2 CPU is 2ghz quad core arm 8 so the processor speed is comparable to a desktop, unless I'm missing something
Pages: [1] 2 3 ... 58
 
CopyableCougar4 (17 views)
2016-06-25 16:56:52

Hydroque (53 views)
2016-06-22 02:17:53

SwampChicken (55 views)
2016-06-20 13:22:57

SwampChicken (55 views)
2016-06-20 13:22:49

SwampChicken (51 views)
2016-06-20 13:22:26

Hydroque (93 views)
2016-06-15 08:22:50

Hydroque (84 views)
2016-06-13 06:40:55

DarkCart (202 views)
2016-05-29 02:30:33

Hydroque (171 views)
2016-05-26 14:45:46

Mac70 (172 views)
2016-05-24 21:16:33
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17
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!