Jump to content

  • Log In with Google      Sign In   
  • Create Account

phil_t

Member Since 06 Oct 2006
Offline Last Active Today, 01:19 AM

Posts I've Made

In Topic: Do My Swordsmen Look Like Cyborgs?

20 July 2016 - 10:18 AM

The blue shoulder pads (?) dominate the image, so that's really all I can see at a first glance. So they end up looking like big buggy eyes or something.

 

Maybe make the body stand out more from the green background, reduce the intensity of the blue, and maybe draw more attention to the sword?

 

 

Just thought of what they reminded me of:

 

http://cdn.bulbagarden.net/upload/thumb/f/f6/073Tentacruel.png/250px-073Tentacruel.png


In Topic: Basic Multithreaded Question

17 July 2016 - 10:32 PM

Copying the array means either one of two things: A) Your array is so small that copying is cheap; if it's that small, you shouldn't be multithreading it anyway. or B) The array is large, but you're taking the easy way out instead of understanding the problem (which sometimes is the economic thing to do, if you don't have time to waste doing the research).
 

 

Or the array is small and cheap to copy, but the computation you're performing is expensive and makes sense to spread over multiple threads...


In Topic: Object Referencing

16 July 2016 - 07:15 PM

I'm not using it for every pointer, but for any pointer that has a strong ownership of an object, so like an entity has a strong ownership of it's components, so it holds a reference to it, and etc.
 

 

So an entity owns its components? Have the entity manage them with a vector of unique_ptrs. There's no need for reference counting or garbage collection, since an entity will outlive its components.


In Topic: Object Referencing

16 July 2016 - 01:52 PM

Do you think that a garbage collector is worth implementing, or is a simple smart_ptr implementation enough?
 

 

You don't say what your scenario is. Is this for a game? What will you be using these objects for?

 

And using reference counting by default (your own implementation, or shared_ptr, or whatever), is a sign that you don't really understand your object lifetime or ownership semantics.


In Topic: Anyone know a sidescrolling shooter without visible bullets?

14 July 2016 - 01:40 PM

In the original Castle Wolfenstein, the bullets are invisible.


PARTNERS