GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
Using the latest GLXOSD version from the PPA on Ubuntu 14.04, 64 bit. Civ5 appears to be a 32 bit game.
/usr/bin/glxosd /home/scrawl/Steam/ubuntu12_32/steam-runtime/run.sh gdb ./Civ5XP
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./Civ5XP...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/scrawl/Steam/SteamApps/common/Sid Meier's Civilization V/Civ5XP
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: the debug information found in "./libopenal.so.1.13.0" does not match "./libopenal.so.1" (CRC mismatch).
warning: the debug information found in "./libuuid.so.1.3.0" does not match "./libuuid.so.1" (CRC mismatch).
[New Thread 0xf5019b40 (LWP 7576)]
[GLXOSD] Reading global configuration file at "/etc/glxosd.conf"...
[GLXOSD] Found key-value pair: (key: "font_name", value: "CPMono_v07 Bold")
[GLXOSD] Found key-value pair: (key: "font_size_int", value: "16")
[GLXOSD] Found key-value pair: (key: "font_colour_r_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_colour_g_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_colour_b_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_colour_a_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_r_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_g_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_b_int", value: "0")
[GLXOSD] Found key-value pair: (key: "font_outline_colour_a_int", value: "255")
[GLXOSD] Found key-value pair: (key: "font_outline_width_float", value: "1")
[GLXOSD] Found key-value pair: (key: "show_text_outline_bool", value: "true")
[GLXOSD] Found key-value pair: (key: "text_pos_x_int", value: "4")
[GLXOSD] Found key-value pair: (key: "text_pos_y_int", value: "4")
[GLXOSD] Found key-value pair: (key: "text_spacing_x_float", value: "0")
[GLXOSD] Found key-value pair: (key: "text_spacing_y_float", value: "0")
[GLXOSD] Found key-value pair: (key: "osd_toggle_keycombo", value: "Shift+F10")
[GLXOSD] Found key-value pair: (key: "vsync_toggle_keycombo", value: "Shift+F11")
[GLXOSD] Found key-value pair: (key: "frame_logging_toggle_keycombo", value: "Shift+F9")
[GLXOSD] Found key-value pair: (key: "frame_log_keep_in_memory_bool", value: "false")
[GLXOSD] Found key-value pair: (key: "frame_logging_message_string", value: "Logging frame timings...")
[GLXOSD] Found key-value pair: (key: "frame_logging_dump_in_progress_message_string", value: "frame_logging_dump_in_progress_message_string")
[GLXOSD] Found key-value pair: (key: "frame_log_directory_string", value: "/tmp/")
[GLXOSD] Found key-value pair: (key: "frame_logging_duration_ms", value: "0")
[GLXOSD] Found key-value pair: (key: "fps_format", value: "FPS: %1$.1f\n")
[GLXOSD] Found key-value pair: (key: "temperature_format", value: "%1$.0f C")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_format", value: "%1%:\n")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_feature_format", value: " %1%: %2%\n")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_filter", value: "NULL")
[GLXOSD] Found key-value pair: (key: "libsensors_chip_feature_filter", value: "NULL")
[GLXOSD] Found key-value pair: (key: "nvidia_gpu_format", value: "%1% (%2%): %3%\n")
[GLXOSD] The configuration was read successfully.
[GLXOSD] Reading user's configuration file at "/home/scrawl/.config/glxosd/glxosd.conf"...
[GLXOSD] Found key-value pair: (key: "osd_toggle_keycombo", value: "Shift+F9")
[GLXOSD] The configuration was read successfully.
[GLXOSD] Loading libglxosd-plugins-libsensors-support.so
[GLXOSD] Loaded libglxosd-plugins-libsensors-support.so
[New Thread 0xf3d3db40 (LWP 7577)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf3d3db40 (LWP 7577)]
0xf77f112c in glGetIntegerv () from /usr/lib32/nvidia-352/libGL.so.1
(gdb) bt
#0 0xf77f112c in glGetIntegerv () from /usr/lib32/nvidia-352/libGL.so.1
#1 0xf7fbbf68 in glGetIntegerv () from /usr//lib/i386-linux-gnu//glxosd/libglxosd-glinject.so
#2 0x090609f2 in SDL_GL_GetAttribute ()
#3 0x0864ad24 in ASL::SDL::CreateContext(SDL_Window*, int, int, int, bool) ()
#4 0x0863e68e in CASLDisplayDeviceList::CASLDisplayDeviceList() ()
#5 0x0863e5d5 in CASLDisplayDeviceList::Instance() ()
#6 0x0858205e in IDirect3D_Mac::IDirect3D_Mac() ()
#7 0x085920bd in Direct3DCreate9 ()
#8 0x08d108d1 in FireGrafix::Enum32BitDisplayModes() ()
#9 0x086e16f9 in Civ5App::Init(char const*) ()
#10 0x0865b3ed in WinMain ()
#11 0x085f5487 in ?? ()
#12 0x085d8e3e in ThreadHANDLE::ThreadProc(void*) ()
#13 0xf7acaf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#14 0xf792ebee in clone () from /lib/i386-linux-gnu/libc.so.6
(gdb)
Using the latest GLXOSD version from the PPA on Ubuntu 14.04, 64 bit. Civ5 appears to be a 32 bit game.