changed SHOW-IPS format for all GUIs

This commit is contained in:
Stanislav Shwartsman 2011-08-14 20:21:07 +00:00
parent 7600c1bc60
commit fb8d302f72
7 changed files with 7 additions and 7 deletions

View File

@ -143,7 +143,7 @@
// Minimum Emulated IPS. // Minimum Emulated IPS.
// This is used in the realtime PIT as well as for checking the // This is used in the realtime PIT as well as for checking the
// IPS value set in the config file. // IPS value set in the config file.
#define BX_MIN_IPS 200000 #define BX_MIN_IPS 1000000
// Minimum and maximum values for SMP quantum variable. Defines // Minimum and maximum values for SMP quantum variable. Defines
// how many instructions each CPU could execute in one // how many instructions each CPU could execute in one

View File

@ -871,7 +871,7 @@ void bx_gui_c::graphics_tile_update_in_place(unsigned x0, unsigned y0,
void bx_gui_c::show_ips(Bit32u ips_count) void bx_gui_c::show_ips(Bit32u ips_count)
{ {
#if BX_SHOW_IPS #if BX_SHOW_IPS
BX_INFO(("ips = %u", ips_count)); BX_INFO(("ips = %3.3fM", ips_count / 1000000.0));
#endif #endif
} }

View File

@ -1692,7 +1692,7 @@ void bx_rfb_gui_c::get_capabilities(Bit16u *xres, Bit16u *yres, Bit16u *bpp)
void bx_rfb_gui_c::show_ips(Bit32u ips_count) void bx_rfb_gui_c::show_ips(Bit32u ips_count)
{ {
char ips_text[40]; char ips_text[40];
sprintf(ips_text, "IPS: %9u", ips_count); sprintf(ips_text, "IPS: %3.3fM", ips_count / 1000000.0);
rfbSetStatusText(0, ips_text, 1); rfbSetStatusText(0, ips_text, 1);
} }
#endif #endif

View File

@ -1610,7 +1610,7 @@ void bx_sdl_gui_c::set_display_mode(disp_mode_t newmode)
void bx_sdl_gui_c::show_ips(Bit32u ips_count) void bx_sdl_gui_c::show_ips(Bit32u ips_count)
{ {
if (!sdl_ips_update) { if (!sdl_ips_update) {
sprintf(sdl_ips_text, "IPS: %9u", ips_count); sprintf(sdl_ips_text, "IPS: %3.3fM", ips_count / 1000000.0);
sdl_ips_update = 1; sdl_ips_update = 1;
} }
} }

View File

@ -2285,7 +2285,7 @@ VOID CALLBACK MyTimer(HWND hwnd,UINT uMsg, UINT idEvent, DWORD dwTime)
void bx_win32_gui_c::show_ips(Bit32u ips_count) void bx_win32_gui_c::show_ips(Bit32u ips_count)
{ {
if (!ipsUpdate) { if (!ipsUpdate) {
sprintf(ipsText, "IPS: %9u", ips_count); sprintf(ipsText, "IPS: %3.3fM", ips_count / 1000000.0);
ipsUpdate = TRUE; ipsUpdate = TRUE;
} }
} }

View File

@ -1676,7 +1676,7 @@ void bx_wx_gui_c::show_ips(Bit32u ips_count)
bx_bool is_main_thread = wxThread::IsMain(); bx_bool is_main_thread = wxThread::IsMain();
bx_bool needmutex = !is_main_thread && SIM->is_sim_thread(); bx_bool needmutex = !is_main_thread && SIM->is_sim_thread();
if (needmutex) wxMutexGuiEnter(); if (needmutex) wxMutexGuiEnter();
sprintf(ips_text, "IPS: %9u", ips_count); sprintf(ips_text, "IPS: %3.3fM", ips_count / 1000000.0);
theFrame->SetStatusText(wxString(ips_text, wxConvUTF8), 0); theFrame->SetStatusText(wxString(ips_text, wxConvUTF8), 0);
if (needmutex) wxMutexGuiLeave(); if (needmutex) wxMutexGuiLeave();
} }

View File

@ -2043,7 +2043,7 @@ void bx_x_gui_c::show_ips(Bit32u ips_count)
{ {
if (x11_mouse_msg_counter == 0) { if (x11_mouse_msg_counter == 0) {
if (!x11_ips_update && !x11_hide_ips) { if (!x11_ips_update && !x11_hide_ips) {
sprintf(x11_ips_text, "IPS: %9u", ips_count); sprintf(x11_ips_text, "IPS: %3.3fM", ips_count / 1000000.0);
x11_ips_update = 1; x11_ips_update = 1;
} }
} else { } else {