Topic:   Java Applets   (Read 18247 times)


0 Members and 1 Guest are viewing this topic.

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: Java Applets
« Reply #15 on: February 13, 2009, 07:18:51 PM »
Quote
I like Java, it seems to be very fast(just about C++ fast) and can be run on just about any platform. Though after Java I will further my learning of C++/Obj-C.


-Gandolf

Java is like molasses compared to C/C++. You can't even begin to compare the two unless you're looking at them purely from a syntactical standpoint. C/C++ is the fastest you can get without coding in assembly.

Ghost

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Java Applets
« Reply #16 on: February 13, 2009, 07:50:00 PM »
Binary is the Fastest however it is useless for making games
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Java Applets
« Reply #17 on: February 13, 2009, 08:44:02 PM »
Quote
Conclusions: Why is "Java is Slow" so Popular?

Java is now nearly equal to (or faster than) C++ on low-level and numeric benchmarks. This should not be surprising: Java is a compiled language (albeit JIT compiled).
Nevertheless, the idea that "java is slow" is widely believed. Why this is so is perhaps the most interesting aspect of this article.

http://www.idiom.com/~zilla/Computer/javaCbenchmark.html

For the complete conclusion, refer to the bottom of the page.


-Gandolf
Here is a neat benchmark graph that'll clear a few misconceptions up:
http://reverseblade.blogspot.com/2009/02/c-versus-c-versus-java-performance.html
« Last Edit: February 13, 2009, 08:47:07 PM by Gandolf »

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: Java Applets
« Reply #18 on: February 13, 2009, 09:34:36 PM »
Okay, first off, I have no clue who authored that blog you mentioned (nor do I know how he conducted his benchmark). However, the other paper you mentioned has been the subject of controversy-- even I had some doubts about it.

Bottom line-- there have been doubts raised about the author's methodology among other things. The general consensus is that Java is getting faster, but C++ still out performs it on arithmetic/trigonometric operations, while Java outperforms C++ on I/O operations.

I was surprised by the article you gave me, because during my 3 years at one of the largest research institutions in the world, I've never heard any of my professors advocate that Java was faster than C++. Java is getting faster, but C++ is still a winner overall.

http://www.freewebs.com/godaves/javabench_revisited/
http://www.ddj.com/cpp/184401976
http://bruscy.republika.pl/pages/przemek/java_not_really_faster_than_cpp.html
http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B

Ghost


Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Java Applets
« Reply #19 on: February 13, 2009, 09:45:23 PM »
Hmm. Both of these articles are contradicting each other. Either one could be correct, though I guess we will never truly know.

Also, I'm making some progress on Java mouse/keyboard input.

-Gandolf

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: Java Applets
« Reply #20 on: February 13, 2009, 09:50:41 PM »
I think the general consensus is that Java is slower than C++, but offers the advantage of easy cross-compatibility between OSes. C++ also is slightly more complicated to learn, but yields faster programs.

If we were talking about embedded systems, C++ would win hands down just because of the sheer amount of overhead required for Java.

Ultimately it doesn't matter for the kind of stuff we're doing here at the GMG. I don't think anybody here really cares if we can get in one more calculation in a cycle. However these things matter when you're studying computers and how to make them faster.

Ghost

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: Java Applets
« Reply #21 on: February 13, 2009, 09:53:42 PM »
Am I the only one here who hates object oriented code?

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Java Applets
« Reply #22 on: February 13, 2009, 10:32:49 PM »
I simply love it, my life is a whole lot easier because of it.

By the way, I've added a movement demo on the project site:
http://web.mac.com/avisaria/ProjectPage/


-Gandolf

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: Java Applets
« Reply #23 on: February 13, 2009, 10:43:48 PM »
In my opinion it just makes everything unnecessarily complicated and cryptic, but whatever.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Java Applets
« Reply #24 on: February 17, 2009, 07:22:00 PM »
Hey guys, update. I tried my hand at making a tile engine from scratch, what do you guys think? Do you guys notice that the character is attached to a grid?
http://web.mac.com/avisaria/ProjectPage/


-Gandolf
P.S. Are there any flickers or laggy-ness to you guys?

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: Java Applets
« Reply #25 on: February 17, 2009, 08:27:59 PM »
For me, the player is constantly flickering and changing speed...

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: Java Applets
« Reply #26 on: February 17, 2009, 09:04:52 PM »
I think the speed goes with the tile, but the flickering is annoying
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

GMG Tim


  • Administrator

  • GMG-er

  • *****


  • Posts: 465
Re: Java Applets
« Reply #27 on: February 18, 2009, 02:52:32 AM »
Quote
For me, the player is constantly flickering and changing speed...

I believe Gan was trying to demo different textures for different tiles. The flickering  died off for me after playing for about 10 seconds-- weird. Looks good!

Ghost

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Java Applets
« Reply #28 on: February 18, 2009, 07:25:52 AM »
I'll look into the flickering, but it seems that there are no lag issues.

Light green tile - Walk regular
Dark green tile - Slower walk
Mountain tile - Can't walk on


-Gandolf

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Java Applets
« Reply #29 on: February 21, 2009, 05:10:42 PM »
Hey, added a scrolling tile engine to my projects list, check it out:
http://web.mac.com/avisaria/ProjectPage/


-Gandolf