Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : proto

Dir     : e17/proto/e_phys/src/lib


Modified Files:
        E_Phys.h e_phys_world.c 


Log Message:

these need to be doubles so they don't overflow

===================================================================
RCS file: /cvs/e/e17/proto/e_phys/src/lib/E_Phys.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- E_Phys.h    21 Sep 2006 05:37:55 -0000      1.5
+++ E_Phys.h    27 Nov 2006 21:38:06 -0000      1.6
@@ -169,10 +169,10 @@
 
   Ecore_Timer *timer;
 
-  float time;
+  double time;
 
-  float dt;
-  float elapsed;
+  double dt;
+  double elapsed;
   int constraint_iter;
   float friction;
 
===================================================================
RCS file: /cvs/e/e17/proto/e_phys/src/lib/e_phys_world.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_phys_world.c      21 Sep 2006 05:24:58 -0000      1.3
+++ e_phys_world.c      27 Nov 2006 21:38:06 -0000      1.4
@@ -45,13 +45,9 @@
 e_phys_world_timer(void *data)
 {
   E_Phys_World *world;
-  float now;
+  double now;
   int i;
 
-  // XXX right now, each timeslice is world->dt apart. it would probably
-  // be better to get the current clock time and figure out how far (real time)
-  // actually elapsed between slices. (then if a slice takes longer than dt to
-  // calc, the frame rate will drop, the physical motion will remain 'at speed'
   world = data;
   now = ecore_time_get();
   world->elapsed = now - world->time;



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to