Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 29 Aug 2009
Offline Last Active Jan 29 2016 12:30 PM

Posts I've Made

In Topic: MSVC 2010 vs MSVC 2012 - Performance question.

29 October 2012 - 04:16 PM

VS2012 has better syntax highlighting than VS2010; classes, namespaces, typedefs have colors now.
I imagine VS2012 would be a little bit better than VS2010, afterall it's newer, so I guess it might have better auto-vectorization, new C++11 features (move, etc) should make it better as well.

IDE itself is responsive. No problems that I haven't had with VS2010, sometimes random freezes, intellisense messing up, etc. Restart fixes it most of the time.

In Topic: BulletPhysics Question

27 October 2012 - 04:45 AM

It will happen if velocity is too high or timestep is too high.

In Topic: Serialization

20 October 2012 - 11:55 AM

You can send struct or class directly, assuming they don't have any pointers inside, packing is right, byte order is right and they don't have any virtual methods.
To fix any of those problems, copy data you want to send into single buffer, ex. array, and send it.

In Topic: float error problem shader 4

20 October 2012 - 02:13 AM

If I remember correctly float has 24 bits of precision, so it should have no problems representing 1 / 16,777,216.

However, it cannot represent all the number inbetween.
1/2 - can
1/3 - cannot
1/4 - can
1/5 - cannot
1/6 - cannot
1/7 - cannot
1/8 - can
and so on...

If you add 1.0f or -1.0f to these numbers it'll only change few last digits as decimal accuracy will decrease. It'll be around
where c - correct digit, w - incorrect.

In Topic: rendering pixels to a big 2Dtexture

20 October 2012 - 02:02 AM

You need to create orthographic matrix. Google will help to create it if your algebra library doesn't support it.