• R/O
  • SSH
  • HTTPS

shaman: Commit


Commit MetaInfo

Révision66 (tree)
l'heure2012-11-19 00:15:07
Auteurshom5xg

Message de Log

Draw fps.

Change Summary

Modification

--- trunk/program/src/pch.h (revision 65)
+++ trunk/program/src/pch.h (revision 66)
@@ -32,7 +32,10 @@
3232 #include "util/mm/mm.h"
3333 #include "util/util.h"
3434
35+#include "core/debug/debug_dip/debug_dip.h"
36+using namespace debug_dip;
3537
38+
3639 ///-- グローバル変数定義
3740
3841 class crender;
--- trunk/program/src/game.cpp (revision 65)
+++ trunk/program/src/game.cpp (revision 66)
@@ -26,6 +26,7 @@
2626 #include "service/Service_GameCtrl.h"
2727 #include "mode/mode_manager.h"
2828
29+#include "core/debug/fps_counter/fps_counter.h"
2930
3031 /***************************************************************************
3132 game( namespace )
@@ -109,5 +110,20 @@
109110 g_p_service_input->DebugDraw();
110111 #endif
111112 }
113+
114+#ifdef _DEBUG
115+ if( IsDip( eDEBUG_DIP_DRAW_FPS ) )
116+ {
117+ cu32 uFps ( fps_counter::fps_counter_get() );
118+
119+ TCHAR sz_temp[256] = {0};
120+ wsprintf( sz_temp, _T( "FPS : %d" ), uFps );
121+
122+ font_def::FontContext_t context;
123+ context.uPosX = 10;
124+ context.uPosY = 10;
125+ g_p_font_gdi->Draw( sz_temp, context );
126+ }
127+#endif
112128 }
113129
Afficher sur ancien navigateur de dépôt.