Jump to content

  • Log In with Google      Sign In   
  • Create Account

Felix Ungman

Member Since 19 Nov 2007
Offline Last Active Dec 19 2014 09:00 AM

Posts I've Made

In Topic: Would it make sense for me to develop on virtual machine? (And question on Li...

17 September 2014 - 12:49 AM

In my setup for cross-platform development I'm using both virtualization *and* dual-boot (iMac + VMware). Even though i also use SDL2 there are a lot of cross-platform issues to deal with, it's super convenient to just push a git commit to the virtual machine and verify that the build is ok. But for performance testing I rather dual boot and profile in the native environment.


In Topic: How do you manage object pools in your engine/game?

12 September 2014 - 03:00 AM

I like to keep things simple and use the new and delete operators most of the time and don't worry that much about allocation. I'm confident that the implementation of new/delete doesn't do anything terribly stupid and that I would have to work really hard to do something better performance-wise. If I need to track objects I put them into an std::vector or sometimes a std::map. There are some cases where I have groups of large numbers of very small objects, and for those I instead use the operator new[] and delete[].


In Topic: GOTO, why are you adverse to using it

05 September 2014 - 01:26 AM

Oh, I use goto on a regular basis. I've used it twice in the last 10 years, which means I write about one goto statement every fifth year. I'm not adverse, but imho goto is lame, real programmers use comefrom.


In Topic: How Does a Noob Start Creating a Simulator?

03 September 2014 - 04:18 AM

Install some IDE, there are many good free ones like http://www.jetbrains.com/pycharm/ and try to do something really simple, like http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

 
Implementing Game of Life will highlight some of the basic concepts of writing simulation systems, yet it's possible to implement in few hundreds line of code.

In Topic: Storing Objects With The Same Base Class In Vector

02 September 2014 - 03:00 AM

If you are looking for ideas and suggestions how to implement a GUI system, you should take a look at some of the existing ones to see how they approach these problems:

 

http://en.wikipedia.org/wiki/List_of_widget_toolkits

http://en.wikipedia.org/wiki/List_of_platform-independent_GUI_libraries


PARTNERS