All pastes #989833 Raw Edit

Someone

public text v1 · immutable
#989833 ·published 2008-04-19 19:29 UTC
rendered paste body
  sU32 Render(sF32 *buf, sU32 len)
  {		
	 while (len)
	{     sInt todo=sMin<sInt>(len,TRCounter);
      if (todo)
      {
        P->Render(buf,todo);
		
        buf+=2*todo;
        len-=todo;
        TRCounter-=todo;
		  
	      }
      else
      {
        Tick();
        TRCounter=TickRate;
	   }
    }
    return 1;
  }