Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  Print  
  Fast engine.tick() design  (Read 5049 times)
0 Members and 2 Guests are viewing this topic.
Offline Eli Delventhal
« League of Dukes »

JGO Kernel
*****

Posts: 3573
Medals: 44


Game Engineer


« Reply #30 on: 2009-10-21 13:57:12 »

I find it much less jarring with linear interpolation than cubic, and the overhead of doing a "clever" (ie world aware) cubic interpolation is probably a LOT bigger than you assume. I'd rather list all collisions within a tick and interpolate linearely between those.

Including acceleration in the interpolation, however, is a very good idea if you manage to do it right, but it'll only matter in games where things change direction a lot.
But I guess the only reason to not do it state based to avoid that single frame of latency? Seems pretty negligible, but I guess if you're doing a super-accurate simulation or something it makes sense.

See my work:
OTC Software
<br />
Currently Working On:
Secret project...
Quote from: _Riven
I edit JGO in production, because I simply don't waste time writing bugs
Pages: 1 [2]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.044 seconds with 18 queries.