MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / advanceObjects

Method advanceObjects

Engine/source/T3D/gameBase/processList.cpp:258–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256//----------------------------------------------------------------------------
257
258void ProcessList::advanceObjects()
259{
260 PROFILE_START(ProcessList_AdvanceObjects);
261
262 // A little link list shuffling is done here to avoid problems
263 // with objects being deleted from within the process method.
264 ProcessObject list;
265 list.plLinkBefore(mHead.mProcessLink.next);
266 mHead.plUnlink();
267 for (ProcessObject * pobj = list.mProcessLink.next; pobj != &list; pobj = list.mProcessLink.next)
268 {
269 pobj->plUnlink();
270 pobj->plLinkBefore(&mHead);
271
272 onTickObject(pobj);
273 }
274
275#ifdef TORQUE_EXPERIMENTAL_EC
276 for (U32 i = 0; i < UpdateInterface::all.size(); i++)
277 {
278 UpdateInterface::all[i]->processTick();
279 }
280#endif
281
282 mTotalTicks++;
283
284 PROFILE_END();
285}
286
287
288

Callers

nothing calls this directly

Calls 4

plLinkBeforeMethod · 0.80
plUnlinkMethod · 0.80
sizeMethod · 0.45
processTickMethod · 0.45

Tested by

no test coverage detected