Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Jan 2004
Offline Last Active Sep 10 2011 10:37 PM

Posts I've Made

In Topic: HLSL Gather()

06 July 2011 - 01:30 PM

GatherRed() will, as it's name states, always return the red component. If you need other components, you can use the corresponding Gather*().

In Topic: E-cigarettes

31 March 2011 - 07:10 PM

I've been using them for over a year now. Started with a Blu-like device, but after the supplier stopped shipping to Canada, I switched over to the eGo and manually filling carts since it's a bit cheaper, and the batteries last a lot longer.

- I stopped smoking cigarettes immediately (variety of benefits here)
- Variable dose size (don't have to have a whole cigarette's worth)
- Cheaper over the long run (Canada)

- Expensive to start
- The hardware is not ready for prime-time: they're cheap, have all sorts of usability issues, inconsistent results, etc..

As the only person I know using them, I've lost of bit of money learning the ropes, and in general I've found them to be often frustrating to use, especially when your battery randomly dies one day or you burn out your last atomizer... but I'd take it over smoking cigarettes any day.

In Topic: EASTL Released Under BSD-type License

20 October 2010 - 02:52 PM

Original post by Antheus
Hey, a whole new front opens in holy wars over whether vector<> or array is faster.
Not really; EASTL isn't going to make a convert out of an array user, but having a sane allocator class is pretty handy for those who'd like to use vector in limited-memory environments (not just consoles, mobile too!).

In Topic: Simultaneous turns in a Risk-like game

10 June 2010 - 06:20 AM

To extend the attack penalty others have suggested and provide an interesting choice to the mix, I suggest a slightly different rule:
- To capture a territory, an army must hold it for a single turn

This gives the attacker some new options, including the ability to hit & run, or blitz through a stretch of enemy territory. It is still possible to take many territories in a single turn, but to do so the attacker must dilute his army.

If you desire, you can add further rules to prevent easy invasions into the middle of enemy territory like a +1 turn penalty to having no adjacent territories, and a -1 turn penalty if the territory is completely surrounded.

In Topic: std::vector and other containers

24 August 2009 - 12:41 PM

Original post by shaolinspin
Thanks, Brother Bob. I'll probably leave things as they are in my current project but use a vector in the future as you say. I've been thinking about overall design recently, so I guess I was probably going to go in the std::vector direction anyway, but having read this I'm far more likely to now! Thanks again.

If speed is more important than memory, one approach is to double-buffer with std::vectors, simply copying over elements that were not erased.