Jump to content

  • Log In with Google      Sign In   
  • Create Account

Shannon Barber

Member Since 23 Jun 2000
Offline Last Active Sep 23 2016 07:35 PM

Posts I've Made

In Topic: Frame skips and Object jumps problem.

19 September 2016 - 11:56 AM

Quick fix is enable V-sync.


Long fix is separate rendering logic from physic logic and run rendering logic in real-time and physic in simulated time.

There's no point in rendering twice if you get jitter but you do need to "catch up" with your physics.


If your rendering loop runs faster than your physic loop then you do simple interpolation between physics key-frames.

In Topic: C++ - How should i go about "dodging" port forwarding?

08 September 2016 - 10:51 AM

Minecraft requires port-forwarding unless they added something fancier in the latest version.


I would suggest having a backup relay server in case hole-punching or IGD/UPnP fail.
The next generation of routers may finally get to the point that hole-punching stops working. It is technically an exploit and connection hijacking.

Some customers will already have more sophisticated stateful firewalls that will prevent hole-punching.


IGD is the designed solution to this problem but I haven't personally programmed code to use it so I cannot attest to it's reliability.
It seems to work well.

IGD will only work at home with consumer NAT/cable/dsl routers and will not function if they are using a commercial (or vanilla) NAT solution.

(e.g. In college I routed our fraternity house Internet through Netware BorderManager for NAT.)


Is Steamworks fully functional if you are not greenlit?

It provides hole-punching and relay if that fails but I don't know if the relay will work for anyone.

If the relay does *not work for everyone and/or if you never intend to go for greenlight then consider using libijngle directly.

In Topic: Faster Sin and Cos

06 September 2016 - 08:52 PM

What kind of windowing are you using?

In Topic: Simple opencl question

30 August 2016 - 12:22 PM

I haven't done much OpenCL yet but I am slated to learn it so I'll give it a shot.


The memcpy should work but it's not necessary for one variable.
You could just assign it, *CENTERptr = center;



Check your error values and print out status about them.

In Topic: Estimating development time

30 August 2016 - 12:01 PM

My inner cynic says that if you can find a reliable formula for estimation of arbitrary software development tasks, you will be not only rich but immortally famous.


Use Joel Spolsky's method for known task then for unknown tasks guess then increase the time units and multiply by 4.

You also have to be sure to estimate the time for the people that will perform the work ... not as if you would perform all the work.

e.g. "That should take an hour!" -> 4 days.


I've landed projects within hours of the estimation. 0.1% error.