Go Back   OnRPG Free MMORPG Forums > Other > Game Archive > Games Database > Development > General Programming

 
 
LinkBack Thread Tools Display Modes
Old 05-25-2006, 12:40 AM   #11 (permalink)
Théoden, King of Rohan
 
power_gamer_6's Avatar
 
Join Date: May 2006
Location: The Realm of Rohan
Posts: 7,465
Reputation: 186
Default

I think this needs to be moved to the General Programming section... But yeah, C++ is good, it's what most of the big guys use.
__________________
power_gamer_6 is offline  
Old 05-25-2006, 07:15 AM   #12 (permalink)
Banned
 
TwitcH's Avatar
 
Join Date: May 2006
Posts: 2,053
Reputation: 14
Default

After alot of reading on the subject, I'm gonna say Java is the better starting point.

- It is just as fast as C++ (some links say it's faster!!)
- It is easier to learn than C++ (this isnt 100% fact, just what most sites said.)
- It is more portable than C++

That's all i've got so far, but remember these arent my opinion's these are just what i've come up with after reading up on both languages tonight. So if anyone thinks any of this is incorrect, please say so
TwitcH is offline  
Old 05-25-2006, 03:35 PM   #13 (permalink)
Luigi’s Pizza
 
HopeDagger's Avatar
 
Join Date: May 2006
Location: Ontario, Canada
Posts: 119
Reputation: 10
Send a message via MSN to HopeDagger
Default

Quote:
Originally Posted by TLM
- It is just as fast as C++ (some links say it's faster!!)
No, Java is slower than C++. Lots of websites try to create esoteric testing scenarios that would make Java faster, but in the other 98% of the programs you'll wite, C++ will always take the lead. This is simply because Java runs on a Virtual Machine, and is interpreted bytecode. C++ on the other hand is pure machine code that requires no interpretation. True that JIT compiling exists for Java, but it still doesn't give it the same edge as C++, due to inherent things to Java that slow it down, like automatic garbage collection, auto array bounds checking, etc.

Not to say that Java isn't comparitively fast, though. It's perfectly suitable for most non-commercial game projects.

Quote:
- It is easier to learn than C++ (this isnt 100% fact, just what most sites said.)
I agree with you there. Although Java's enforced OOP can make it daunting on a beginner, the removal of pointers and memory-management nonsense makes things feel a LOT cleaner and easier to grasp. C++ still has a lot more nice IDEs though.
__________________
Gauntlets of Recursion (+5) - My game development journal.
HopeDagger is offline  
Old 05-31-2006, 04:34 AM   #14 (permalink)
Link's Dirty Sock
 
Gravedigger's Avatar
 
Join Date: May 2006
Location: I dig graves, the next one might be yours.
Posts: 42
Reputation: 10
Default

Quote:
Originally Posted by pb_destiny
Hmm well to tell you the truth VB is very useful, and can be used for video game programming. I don’t know exactly how much experience you have with the language, but video game programming takes a good understanding of the language before you can use it.
Nicely put do not look at VB as a useless program, even with the simplicity of the program it is a very useful program and using DirectX and VB you can make good quality games, there are a lot of free source code websites that provide game source codes, which I have played and contributed towards.
__________________
Dream as if you'll live forever.
Live as if you'll die today.
Gravedigger is offline  
Old 06-17-2006, 10:29 PM   #15 (permalink)
Detective Kirby
 
punkerdan85's Avatar
 
Join Date: May 2006
Posts: 152
Reputation: 10
Default

Quote:
Originally Posted by HopeDagger
C++ on the other hand is pure machine code that requires no interpretation.
O RLY? ...so all that mess about being converted into Assembly and then into the actual 1's and 0's is all just a bunch of BS, right? Right... :rolleyes:
__________________
punkerdan85 is offline  
Old 06-18-2006, 04:37 PM   #16 (permalink)
Still learning the ropes
 
Digidestined's Avatar
 
Join Date: Jun 2006
Location: Indiana
Posts: 26
Reputation: 10
Send a message via MSN to Digidestined
Default

I don't know much about programming, but I have been told that C++ is the best programming language so far. When I start to learn a programming language for my game programming career, I will be choosing to learn C++. If I were you, I would start learning C# early.
__________________
May the Force be with you always!
Digidestined is offline  
Old 06-19-2006, 06:53 AM   #17 (permalink)
500+ Posts????
 
Shattered Skies's Avatar
 
Join Date: May 2006
Location: Indiana, USA
Posts: 512
Reputation: 19
Send a message via ICQ to Shattered Skies Send a message via AIM to Shattered Skies Send a message via MSN to Shattered Skies Send a message via Yahoo to Shattered Skies
Default

Quote:
Originally Posted by HopeDagger
Although Java's enforced OOP can make it daunting on a beginner, the removal of pointers and memory-management nonsense makes things feel a LOT cleaner and easier to grasp. C++ still has a lot more nice IDEs though.
Pointers were the most annoying thing for me to grasp when I was learning C++ in college, and to this day it still is. When we were taught Java, I absolutely despised the language cause I heard so much fuss about it. But within 2 months of programming in the language, every stereotype that Ive heard about it were gone and I was in love with the language. Partly cause no worries anymore about pointers, and I loved working soley in OOP, it was and is fun.

Of course, when you are starting out, the difference in speed with most of the programs you wrote, and comparing them to a C++ program, there really is no difference in the two because of the realitively small size. I've yet to make a "huge" project yet. I do know, though, that Java is slower then C++ which is why its the preferred choice in MMOs or other games.

I still personally recommend Java because of the learning curve is a little better in my opinion, and gets you right into OOP which would really help when it comes to learning C++ or any other language at that. I recommend this to the fellows at OnGameDev.com as well whenever this very same topic comes up.
Shattered Skies is offline  
Old 06-29-2006, 10:10 AM   #18 (permalink)
Cloud's Hair Spray
 
Join Date: Jun 2006
Location: Netherlands
Posts: 61
Reputation: 10
Send a message via MSN to ractoc
Default

I've been programming Java for some years now, both for fun and professionally. And I agree with Shattered skies about it being a very nice language to code in. With respect to the whole C++/C# thing, C# is nothing more then C++ with Java syntax. (Or at least from the 4 months I had to put up with it, I came to that conclusion).
The fact that Java enforces OO will indeed help when switching to C++. Since C++ supports OO but does not enforce it. In C++ you can still write your entire program in one flat file.

The idea though that Java wouldn't be usefull for MMO games is somewhat outdated though. I agree that for the server side of things C++ is the way to go because this is where speed is most important. But client side it mostly depends on the type of game you are programming. Most RPG games don't need those uber speeds anyways. And with current computers the differences aren't that big to begin with.

I've been testing around with the new Java 6.0 beta release and I find that they've upped the speed once more so, while not there yet, they are getting closer. Most of the game lag however is (usually) in the graphics area of the game or the networking. With current internet connections getting faster and faster, network lag is less and less of an issue. The graphics lag is determined fora big part by your graphics card and the way the game builds up the environment.
Commercial games tend to be much heavier in this respect then hobbyist games, so they need much more computing power / speed on the graphics area. However, this still doesn't exlude Java, since you can just offload the graphics bit to a C++ library from java.

The biggest advantage of using Java over C++ is portability. If you plan on deplpying the client side of your game on PC, Mac and Linux, I would say go with Java and just offload the really tim crittical parts (such as graphics) to a C++ library. This cuts down porting effort big time, since only that small portion of the game needs to be altered.

just my vision on things...

Mark
ractoc is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0
OnRPG, Copyright ©2003-2011, Game Entertainment Enterprises