Jump to content

  • Log In with Google      Sign In   
  • Create Account

Flopid

Member Since 13 Jun 2005
Offline Last Active Jul 18 2013 08:56 PM

Posts I've Made

In Topic: Java Deadlock Question

17 June 2013 - 03:10 PM

Well I understand completely what is happening now. I did not really think that Java would obliterate synchronization. Thanks for the clarification frob!!!

 

 

You really want to AVOID MULTITHREADING inside your engine until you have already mastered many other areas of game development.

 

I am kind of thinking ahead when in the future I would have a scene with many objects appearing and dissapearing or changing shapes. For things like buffers in that instance multithreading would be a great boost (think OpenCL oh noes). I also think that starting to thread simple code is much easier than threading at the end where u can miss something and might have to debug... for a while : )

 

Plus I am just doing this for fun to learn more about Java and graphics.

 

Again many thanks for your replies and have a great day!


In Topic: Program Wide Global Vars in C++?

03 January 2013 - 12:00 AM

I usually do try to follow OOP without globals, but it seems when, for example, you have a variable that you have passed through a function or a constructor to many classes you pretty much have to somehow document it anyway, for code clarity. In this case it would seem like a global would be just a bit easier to manage. That, however, raises a question, why did you bite the bullet, and thus leaves the scope of this book.


In Topic: Program Wide Global Vars in C++?

02 January 2013 - 03:49 PM

Wow a lot of info from all of the posts, just for a global variable. I am not completely sure how to implement a singleton yet, but I found this website. There are a few questions I have about this, but it is probably a subject for another thread. It seems as if a singleton is much better to use in a team environment, where people can accidentaly instantiate a global more than once, plus as I see it is more safe for threads. I'll have to reasearch more, but for now I'll probably just use "extern" as I can keep track of the code I have.

 

This bump is not intentional, just wanted to contribute to the conversation : )


In Topic: Program Wide Global Vars in C++?

28 December 2012 - 11:54 PM

Ah lol the extern, completely forgot it existed. I'll take your advice, but I like to make a mess also though, makes me look like I've been working : )

 

Thank you very much!!!


In Topic: [.net] C# Improved Substring with Escape Characters

07 October 2010 - 12:03 PM

Personally I find using escape sequences a lot easier than Environment. It's just less typing. Maybe it is more useful if you are writing a word processor or something of that sort. Then again you could do something like this if you want to add a tab, for example, when you hit a tab key.

string c = "word processor text";
if (key == tab)
{
c += "\t";
}

Some people say to code one way is clearer, but I think it is just a style or personal preference. It really depends if you are working with a team or not. That way everyone can settle on one style.

PARTNERS