From: <cad...@li...> - 2005-12-22 02:55:51
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns=3D"http://www.w3.org/1999/xhtml"> <head><style type=3D"text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: = #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:':';} #msg dl, #msg dt, #msg ul, #msg li { font-family: verdana,arial,helvetica= ,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; fo= nt-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padd= ing: 6px; } #msg ul, pre { overflow: auto; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt= ;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:aut= o;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patc= h .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 = 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 = 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[294] tiki/src/gl: Tiki: genmenu: pass along the time since the la= st frame to drawables</title> </head> <body> <div id=3D"msg"> <dl> <dt>Revision</dt> <dd>294</dd> <dt>Author</dt> <dd>sam.steele</dd> <dt>Date</dt> <dd>2005-12-21 18:46:29 -0800 (Wed, 21 Dec 2005)</dd> </dl> <h3>Log Message</h3> <pre>Tiki: genmenu: pass along the time since the last frame to drawables= </pre> <h3>Modified Paths</h3> <ul> <li><a href=3D"#tikiincludeTikigenmenuh">tiki/include/Tiki/genmenu.h</a><= /li> <li><a href=3D"#tikisrcglgenmenucpp">tiki/src/gl/genmenu.cpp</a></li> </ul> </div> <div id=3D"patch"> <h3>Diff</h3> <a id=3D"tikiincludeTikigenmenuh"></a> <div class=3D"modfile"><h4>Modified: tiki/include/Tiki/genmenu.h (293 =3D= > 294)</h4> <pre class=3D"diff"> <span class=3D"info">--- tiki/include/Tiki/genmenu.h 2005-12-22 02:45:21 = UTC (rev 293) +++ tiki/include/Tiki/genmenu.h 2005-12-22 02:46:29 UTC (rev 294) </span><span class=3D"lines">@@ -130,6 +130,12 @@ </span><span class=3D"cx"> =09 </span><span class=3D"cx"> // Our background stream, if we have on. </span><span class=3D"cx"> RefPtr<Audio::VorbisStream> m_bgm; </span><ins>+=09 + // The time at which we started + uint64 m_startTime; +=09 + // The time of the last frame rendered + uint64 m_lastTime; </ins><span class=3D"cx"> }; </span><span class=3D"cx">=20 </span><span class=3D"cx"> } </span></pre></div> <a id=3D"tikisrcglgenmenucpp"></a> <div class=3D"modfile"><h4>Modified: tiki/src/gl/genmenu.cpp (293 =3D> 29= 4)</h4> <pre class=3D"diff"> <span class=3D"info">--- tiki/src/gl/genmenu.cpp 2005-12-22 02:45:21 UTC = (rev 293) +++ tiki/src/gl/genmenu.cpp 2005-12-22 02:46:29 UTC (rev 294) </span><span class=3D"lines">@@ -55,6 +55,8 @@ </span><span class=3D"cx"> m_scene =3D new Layer(); </span><span class=3D"cx">=20 </span><span class=3D"cx"> m_postDelay =3D 0; </span><ins>+=09 + m_startTime=3Dm_lastTime=3DTime::gettime(); </ins><span class=3D"cx"> } </span><span class=3D"cx">=20 </span><span class=3D"cx"> GenericMenu::~GenericMenu() { </span><span class=3D"lines">@@ -123,6 +125,8 @@ </span><span class=3D"cx"> } </span><span class=3D"cx">=20 </span><span class=3D"cx"> void GenericMenu::visualPerFrame() { </span><ins>+ uint64 frameTime=3DTime::gettime(); +=09 </ins><span class=3D"cx"> m_scene->subRemoveFinished(); </span><span class=3D"cx"> m_scene->createSceneList(); </span><span class=3D"cx">=20 </span><span class=3D"lines">@@ -142,7 +146,8 @@ </span><span class=3D"cx"> =09 </span><span class=3D"cx"> m_scene->destroySceneList(); </span><span class=3D"cx">=20 </span><del>- m_scene->nextFrame(0); </del><ins>+ m_scene->nextFrame(frameTime-m_lastTime); + m_lastTime=3DframeTime; </ins><span class=3D"cx"> } </span><span class=3D"cx">=20 </span><span class=3D"cx"> void GenericMenu::visualOpaqueList() { </span></pre> </div> </div> </body> </html> |