コード例 #1
0
void CCodeCheckpointDebugMgr::Update(float dt)
{
	//Don't do any work if we haven't requested this as active
	if(!m_debug_ccoverage)
		return;

	m_timeSinceLastRun += dt;
	if( m_timeSinceLastRun > m_debug_ccoverage_rate)
	{
		UpdateRecords();
		m_timeSinceLastRun = 0;
	}

	DrawDebugInfo();

}
コード例 #2
0
/* virtual */ void
CFlowInspectorDefault::PostUpdate(IFlowGraph * pGraph)
{
	ColorF headColor   ( 1.0f,0.5f,0.5f,1.0f );
	ColorF filterColor ( 1.0f,0.1f,0.1f,1.0f );
	if (!m_bPaused)
	{
		UpdateRecords();
	}

#if 1
	if (m_newCont <= MAX_ROWS_CONT) 
		DrawLabel(2,0,headColor,0.2f, "Continuous Flows:");
	else
		DrawLabel(2,0,headColor,0.2f, "Continuous Flows [truncated]:");

	DrawRecords(m_contRecords,1, m_bPaused ? 0.0f : MAX_AGE_CONT);
	if (m_newOneTime <= MAX_ROWS) 
		DrawLabel(2,1+MAX_ROWS_CONT,headColor,0.2f, "Flows:");
	else
		DrawLabel(2,1+MAX_ROWS_CONT,headColor,0.2f, "Flows [truncated]:");

	if (m_bPaused)
		DrawLabel(2,-1,headColor,0.5f, "Paused:");
	
	if (m_filters.empty() == false)
		DrawLabel(11,-1,filterColor,0.0, "Filter Active");

	DrawRecords(m_oneTimeRecords,1+1+MAX_ROWS_CONT, m_bPaused ? 0.0f : MAX_AGE);
#endif

	m_bProcessing = true; // FIXME: actually we should set it to 'false' now, but then we don't get EntityEvents, which occur not during the FG update phase
	m_curRecords.resize(0);

	if (gEnv->pInput)
	{
		static TKeyName scrollKey("scrolllock");
		if (gEnv->pInput->InputState(scrollKey, eIS_Pressed))
			m_bPaused = !m_bPaused;
	}
}
コード例 #3
0
ファイル: plugin_message.cpp プロジェクト: xuanya4202/ew_base
	void DoUpdateCtrl(IUpdParam& upd)
	{
		EvtCommandWindow::DoUpdateCtrl(upd);
		UpdateRecords();
	}