Commit Graph

193 Commits

Author SHA1 Message Date
Josh Wilson 01057741dc asserting that task names must be strings 2008-05-07 01:24:57 +00:00
Darren Ranalli d0c4d4f8fc fixed doLater unit tests to work properly when they run in a single frame 2008-05-06 01:07:11 +00:00
Darren Ranalli 60f5de72b7 provide feedback when breaking into Python prompt 2008-05-05 22:22:38 +00:00
Darren Ranalli fa1bec2af7 added TaskManager unit tests 2008-05-05 22:17:04 +00:00
Darren Ranalli d594cb7dde fixed getTasks and getDoLaters to exclude removed tasks, renamed stepping() to setStepping() so it isn't overwritten by 'stepping' instance member variable 2008-05-05 21:57:14 +00:00
Darren Ranalli a88673a24a fixed memory leak when task is removed via Task.remove() 2008-05-05 20:22:35 +00:00
Darren Ranalli ded092dc32 added task leak detection to ContainerLeakDetector 2008-04-29 23:50:55 +00:00
Josh Yelon e6cca5ec86 Changes for python 2.5 2007-12-08 21:49:14 +00:00
Darren Ranalli 6f96c57f8b fix for IOError unpacking 2007-11-29 18:49:24 +00:00
Darren Ranalli dbe9ec8337 fix for IOError unpack crash 2007-11-12 21:02:08 +00:00
Darren Ranalli 6eb6e236db added task counts to AI pstats collection 2007-10-24 08:40:20 +00:00
Zachary Pavlov a20301a2b5 faster tasks and network updates from objects 2007-10-16 23:49:18 +00:00
Zachary Pavlov fa4278b3ae new object oriented tasks! 2007-10-05 03:07:04 +00:00
David Rose bfd91c6e66 more startup ordering issues 2007-08-06 22:19:19 +00:00
David Rose 6a03484e9f more attempts to straighten out startup ordering on publish 2007-08-06 21:32:46 +00:00
Joe Shochet 8c46644a1c optimization of private variables to friend style variables 2007-06-27 17:18:00 +00:00
Darren Ranalli 3a169d14b1 shorten the fractional output of previous checkin (long task logging) 2007-06-05 04:44:58 +00:00
Darren Ranalli 98efaf0f62 added warnings for tasks that run longer than expected, to track down chugs 2007-06-05 04:26:15 +00:00
Darren Ranalli c425fe114a removed unnecessary code 2007-05-18 21:44:39 +00:00
Darren Ranalli 8256254a07 don't create Task creation stacks by default 2007-05-18 21:16:33 +00:00
Darren Ranalli 4af740cebe prevent crash on startup 2007-05-15 00:50:48 +00:00
Darren Ranalli 7e54ae47b7 fix startup crash 2007-05-14 23:29:20 +00:00
Darren Ranalli f191acace1 only record creation stack in dev 2007-05-14 23:11:17 +00:00
Roger Hughston ffa480bde7 Changes to support yielding instead of sleeping 2007-05-05 00:32:51 +00:00
David Rose afabf9df4e regularize extraArgs 2007-04-18 22:03:03 +00:00
Darren Ranalli a88183a033 support for profiling multiple frames 2007-03-07 02:59:43 +00:00
Josh Yelon a68c6cc412 Added support for libp3heapq vs libheapq 2007-02-12 19:43:09 +00:00
Zachary Pavlov 3eb4b0d3de pstats tasks now doesn't shoqw igLoop 2007-01-22 22:29:39 +00:00
Joe Shochet 762db17e6e more efficient task redefining 2007-01-17 06:07:56 +00:00
Joe Shochet 7fefe01e6a task replacement now looks for doLaters and pending tasks 2007-01-11 00:47:46 +00:00
Darren Ranalli d7b0ba8510 added anonymous profiling that doesn't need to be configed on for ~profile 2006-12-27 19:56:52 +00:00
Darren Ranalli 0341696500 added *base.profileNextFrame 2006-10-28 13:15:53 +00:00
Joe Shochet 46a0c73e47 added warning for doLater with negative delay time 2006-10-28 01:19:11 +00:00
David Rose 3c0d5e6342 fix taskMgr formatting, fix bug with delayed doLater tasks 2006-10-18 22:37:55 +00:00
Redmond Urbino 5bbc36f8d4 make toontown work with Direct revamp 2006-08-11 04:56:34 +00:00
David Rose 216e635ee7 more __all__ fixes from Josh Yelon 2006-08-10 22:14:31 +00:00
Jason Yeung 83e903d269 - Fixed task.time not being available on init 2006-08-09 22:08:23 +00:00
Josh Yelon 0c888dcaad Added __all__ declarations to actor, task, fsm 2006-08-08 19:15:16 +00:00
Jason Yeung ba07fb0b35 - Task bug fix for task.dt 2006-08-02 20:53:09 +00:00
David Rose 08de280be6 deal with ClockObject having moved out of libpandaexpress 2006-07-06 16:42:28 +00:00
Josh Yelon e30cf6b193 Added support for Task.cont, etc, using Task as a class 2006-05-18 20:54:44 +00:00
Dave Schuyler fe0177f28c cr at eof 2006-04-29 00:23:01 +00:00
Dave Schuyler 9d3d749a54 changed debug output 2006-04-04 23:45:37 +00:00
Dave Schuyler 9d6aa6cf53 formatting 2006-03-30 03:17:49 +00:00
David Rose f594fa67ad temporary hack 2006-03-29 18:38:32 +00:00
Dave Schuyler a2aa9486d1 formatting 2006-03-17 23:47:12 +00:00
Joe Shochet 88d05089fe moved PStat import to top of file for more efficient profiling 2006-03-15 21:53:46 +00:00
David Rose 6a4debc517 support Task object for doMethodLater 2006-01-24 19:30:19 +00:00
Dave Schuyler 86f4c2e68e remove extra paren from assert 2006-01-09 22:18:28 +00:00
Darren Ranalli 5be710f8b5 merged from pirates_1_first_merged_to_trunk 2005-09-14 22:13:42 +00:00
Joe Shochet 0d5cfa8e1b better pandac importing for old and new FFI 2005-05-27 21:50:18 +00:00
Darren Ranalli 3b6d1fff8c added table heading to osd 2005-04-28 20:55:39 +00:00
Darren Ranalli 0b79545908 added osd support 2005-04-28 18:30:37 +00:00
David Rose 95647b0093 more smoother optimizations 2005-01-14 03:57:54 +00:00
Justin Butler 646ddbce9e Added a new return value for tasks (specifically designed for doLaters) called 'again' which will repeat a doLater with the already set delay time, helping avoid having to remove and recreate doLaters when performing delayed recurring tasks. 2004-12-23 01:30:14 +00:00
Dave Schuyler f876dd883d changed comment 2004-09-24 22:36:37 +00:00
David Rose 735c45d8b4 use self.wakeTime instead of cTask object 2004-09-08 17:38:07 +00:00
Joe Shochet 2d3afd2dcc fixed dolater sorting 2004-09-04 00:53:27 +00:00
Joe Shochet 454f8fd782 opt fixes for tasks and heapq 2004-09-04 00:43:19 +00:00
Joe Shochet 14bcc223a0 new CTask for debugging on Linux 2004-09-03 23:59:09 +00:00
Joe Shochet 92b9f2e8da Fixed doLater ordering problem on gc pass 2004-09-03 16:57:02 +00:00
Joe Shochet 8477e70e0e mark and sweep gc on removed doLaters 2004-08-23 20:42:16 +00:00
David Rose 3413263516 don't import PandaModules here 2004-08-05 03:32:38 +00:00
Joe Shochet 13fba5c442 another small opt in removeTasksNamed 2004-08-02 17:44:47 +00:00
Joe Shochet b1377f317e better cmp operator for Tasks 2004-07-26 21:44:21 +00:00
Joe Shochet f58a790703 optimizations in the Task system to use heapq 2004-07-26 17:15:58 +00:00
Joe Shochet b035fd8349 doMethodLater optimizations 2004-07-23 18:39:17 +00:00
Darren Ranalli 0ccb6a38c1 added pandac import to get DummyLauncher working 2004-06-17 00:58:35 +00:00
Joe Shochet 15db33d2ff toon optimizations 2004-06-14 18:08:17 +00:00
David Rose b1db93fb87 explicit import paths 2004-06-01 19:31:48 +00:00
Dave Schuyler 8ddf9011d5 fixing cleanup during alt-f4 exit 2003-11-29 04:21:35 +00:00
Dave Schuyler 21b131f9ba allowing remove() to be called on a removed task. 2003-11-01 07:12:21 +00:00
Joe Shochet fe6d1f085a new task API with extraArgs 2003-10-12 06:14:56 +00:00
Dave Schuyler e4b9210235 changed several task priorities. 2003-09-30 22:51:05 +00:00
Joe Shochet 6446d3c673 fixed Finder bug when callback is deleted on removed tasks 2003-09-22 21:06:33 +00:00
Joe Shochet a0ccebc539 more efficient doLater processing 2003-09-19 03:30:27 +00:00
Joe Shochet 0c81219af1 Tasks can return None to mean done now 2003-08-18 17:01:00 +00:00
Joe Shochet fc34f9aeb8 removed dolaters upfront 2003-06-23 16:11:14 +00:00
Joe Shochet 03204e52b6 *** empty log message *** 2003-06-15 21:07:41 +00:00
Joe Shochet 8edea699c2 pri level spawn fixes 2003-05-29 03:49:29 +00:00
Mark Mine ba8d32a738 Update DirectSelection to create new SelectionQueue and SelectionRay classes
More generalized to support new Selection(Object) types
2003-04-23 02:03:11 +00:00
David Rose 3bcda1e260 typo in spawnDoLater 2003-04-18 01:17:34 +00:00
Darren Ranalli f96404202f comment for verbose bug fix 2003-04-17 21:34:17 +00:00
Joe Shochet 9e78047e75 verbose bug fix 2003-04-17 19:54:24 +00:00
Joe Shochet d7cb1260c4 optimized dolaters and timer change 2003-04-07 17:49:11 +00:00
Joe Shochet 74a8e8ba4c optimized dolaters 2003-04-07 07:58:07 +00:00
Darren Ranalli 88c6326ae8 new tasks always ask globalClock for the frame time; helpful after long intra-frame delays (such as loads) 2003-03-26 21:26:58 +00:00
Joe Shochet 69e7a0ce44 castillian support 2003-03-21 00:21:08 +00:00
David Rose 75c1e0ad0c don't crash when showing taskMgr without fpformat 2002-10-08 03:14:59 +00:00
David Rose aadae70a6a vfs, make globalClock builtin 2002-08-06 16:05:45 +00:00
David Rose 4413cb9591 return task from add() 2002-07-03 17:14:49 +00:00
David Rose f06959d736 fix taskMgr output 2002-07-03 17:01:07 +00:00
Joe Shochet b0bdc0639c leaking tasks fix 2002-06-26 17:34:42 +00:00
Joe Shochet 84291066be added tasks run same frame now 2002-06-25 18:05:42 +00:00
Joe Shochet 3063689934 *** empty log message *** 2002-06-24 19:02:08 +00:00
David Rose c1823b75ca task name 2002-06-22 23:45:55 +00:00
Joe Shochet 0f94a11a53 *** empty log message *** 2002-06-22 00:15:27 +00:00
Joe Shochet 6a358681ed *** empty log message *** 2002-05-23 23:17:59 +00:00
Mark Mine ce32c8c748 Fixes to make compatible with new panda 2002-04-06 02:03:37 +00:00
Joe Shochet de41ee6447 *** empty log message *** 2002-02-08 01:16:45 +00:00