You are not logged in.

#1 2013-04-10 01:18:54

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

[Solved] Conky causes stuttering in OpenGL applications

I noticed last night that conky was making a few games that use OpenGL stutter everytime it updates.  I found an entry in the Gentoo forums also noticing this anomaly. Also note that I am using the Cinnamon desktop.

http://forums.gentoo.org/viewtopic-t-66 … art-0.html

Killing conky resolves the issue, but unfortunately I don't want to have to kill it everytime I load up a game.

Has anyone else had this issue? Here is my conky config file which is based on Conky Colors.

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
if_up_strictness link

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Aller:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
#own_window_type normal
own_window_argb_visual yes
own_window_argb_value 180
#own_window_transparent yes
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

own_window yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type panel

alignment top_right
gap_x 25
gap_y 150
minimum_size 182 800
maximum_width 270

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color cccccc

color0 white
color1 1E90FF
color2 white
color3 0084C8

TEXT
${font Ubuntu Mono:style=Bold:size=9}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${voffset 8}${offset 4}${font ConkyColorsLogos:size=9}a${font}${color}${voffset -16}
${color0}${font ConkyColors:size=16}b${font}${color}
${goto 32}${voffset -23}Kernel: ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--CPU
${voffset 4}${color0}${font ConkyColors:size=16}c${font}${offset -20}${voffset 6}${cpubar cpu0 4,17}${color}${voffset -16}${goto 32}CPU1: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu1}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 0' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu1 8,50 1E90FF 0084C8}${color}
${goto 32}CPU2: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu2}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 1' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu2 8,50 1E90FF 0084C8}${color}
${goto 32}CPU3: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu3}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 2' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu3 8,50 1E90FF 0084C8}${color}
${goto 32}CPU4: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu4}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 3' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu4 8,50 1E90FF 0084C8}${color}
${goto 32}CPU5: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu5}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 4' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu5 8,50 1E90FF 0084C8}${color}
${goto 32}CPU6: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu6}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 5' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu6 8,50 1E90FF 0084C8}${color}
${goto 32}CPU7: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu7}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 6' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu7 8,50 1E90FF 0084C8}${color}
${goto 32}CPU8: ${font Ubuntu Mono:style=Bold:size=9}${color1}${cpu cpu8}%${font} ${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1}${execi 30 sensors | grep 'Core 7' | awk '{print $3}' | sed 's/+//' | sed 's/.0.*//'}${color}${font}  ${color2}${cpugraph cpu8 8,50 1E90FF 0084C8}${color}
# |--MEM
${voffset 2}${color0}${font ConkyColors:size=15}g${font}${color}${goto 32}${voffset -7}RAM: ${font Ubuntu Mono:style=Bold:size=9}${color1}$memperc%${color}${font}
${offset 1}${color0}${membar 4,17}${color}${goto 32}F: ${font Ubuntu Mono:style=Bold:size=9}${color2}${memeasyfree}${color}${font} U: ${font Ubuntu Mono:style=Bold:size=9}${color2}${mem}${color}${font}
# |--PROC
${voffset 4}${color0}${font ConkyColors:size=15}C${font}${color}${goto 32}${voffset -10}Processes: ${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 42}${color2}${top name 1}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 42}${color2}${top name 2}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 42}${color2}${top name 3}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 42}${color2}${top name 4}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 42}${color2}${top name 5}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 5}${alignr }${top mem 5}${color}${font}
${voffset -1}${goto 42}${color2}${top name 6}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 6}${alignr }${top mem 6}${color}${font}
${voffset -1}${goto 42}${color2}${top name 7}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 7}${alignr }${top mem 7}${color}${font}
${voffset -1}${goto 42}${color2}${top name 8}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 8}${alignr }${top mem 8}${color}${font}
${voffset -1}${goto 42}${color2}${top name 9}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 9}${alignr }${top mem 9}${color}${font}
${voffset -1}${goto 42}${color2}${top name 10}${color}${font Ubuntu Mono:style=Bold:size=9}${color1} ${goto 126}${top cpu 10}${alignr }${top mem 10}${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Ubuntu Mono:style=Bold:size=9}DATE $stippled_hr${font}
${voffset -2}${goto 32}${font Ubuntu Mono:size=38}${color2}${time %H}${color}${font}
${voffset -40}${goto 90}${font Ubuntu Mono:style=Bold:size=11}${color2}${time :%M}${time :%S}${color}${font}
${voffset -2}${goto 90}${font Ubuntu Mono:style=Bold:size=9}${color2}${time %A}${color}${font}
${goto 90}${time %d %b %Y}
################
# - CALENDAR - #
################
${voffset 2}${color0}${font ConkyColors:size=15}n${font}${voffset -9}${offset 1}${font Ubuntu Mono:style=Bold:size=7}${offset -17}${voffset 4}${time %d}${font}${color}${voffset -1}${font Liberation Mono:size=7}${execpi 300 DJS=`date +%_d`; cal -s|sed '2,8!d'| sed '/./!d' | sed 's/^/${goto 42} /'| sed 's/$/ /' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${font Arial:style=Bold:size=9}${voffset -2}${offset -4}${color1} '"$DJS"'${color}${font Liberation Mono:size=7}'" "/}${voffset -1}
##############
# - NVIDIA - #
##############
${voffset 4}${font Ubuntu Mono:style=Bold:size=9}NVIDIA $stippled_hr${font}
${color0}${voffset 2}${font ConkyColorsLogos:size=16}n${font}${color}${goto 32}${voffset -8}GPU Temp:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}${font}${color}°C
${goto 32}GPU Clock:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q GPU2DClockFreqs -t}${font}${color}MHz
${goto 32}Video RAM:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q VideoRam -t}${font}${color}KiB
${goto 32}Driver Version:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q NvidiaDriverVersion -t}${font}${color}
##########
# - HD - #
##########
${voffset 4}${font Ubuntu Mono:style=Bold:size=9}HD $stippled_hr${font}
${execpi 30 /usr/share/conkycolors/bin/conkyHD3}
###############
# - NETWORK - #
###############
${voffset -4}${font Ubuntu Mono:style=Bold:size=9}NETWORK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Ubuntu Mono:style=Bold:size=9}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totalup wlan0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Ubuntu Mono:style=Bold:size=9}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totaldown wlan0}${color}${font}
${color0}${font ConkyColors:size=15}j${font}${color}${voffset -6}${goto 32}Signal: ${font Ubuntu Mono:style=Bold:size=9}${color1}${wireless_link_qual_perc wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 2}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr wlan0}${color}
# |--ETH0
${else}${if_up enp9s0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Ubuntu Mono:style=Bold:size=9}${color1}${upspeed enp9s0}${color}${font} ${alignr}${color2}${upspeedgraph enp9s0 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totalup enp9s0}${color}${font}
${voffset 4}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Ubuntu Mono:style=Bold:size=9}${color1}${downspeed enp9s0}${color}${font} ${alignr}${color2}${downspeedgraph enp9s0 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totaldown enp9s0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr enp9s0}${color}
# |--ETH1
${else}${if_up eth1}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Ubuntu Mono:style=Bold:size=9}${color1}${upspeed eth1}${color}${font} ${alignr}${color2}${upspeedgraph eth1 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totalup eth1}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Ubuntu Mono:style=Bold:size=9}${color1}${downspeed eth1}${color}${font} ${alignr}${color2}${downspeedgraph eth1 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totaldown eth1}${color}${font}
${color0}${font ConkyColors:size=15}j${font}${color}${voffset -6}${goto 32}Signal: ${font Ubuntu Mono:style=Bold:size=9}${color1}${wireless_link_qual_perc eth1}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 eth1}${color}
${voffset 4}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr eth1}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Ubuntu Mono:style=Bold:size=9}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totalup ppp0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Ubuntu Mono:style=Bold:size=9}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 1E90FF 0084C8}${color}
${goto 32}Total: ${font Ubuntu Mono:style=Bold:size=9}${color2}${totaldown ppp0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${color0}${font ConkyColors:size=15}q${font}${color}${voffset -6}${goto 32}Network Unavailable${voffset 14}${endif}${endif}${endif}${endif}

Last edited by z1lt0id (2013-04-11 23:34:55)

Offline

#2 2013-04-10 02:44:31

rogue
Member
Registered: 2011-08-03
Posts: 68
Website

Re: [Solved] Conky causes stuttering in OpenGL applications

Check out this.

Offline

#3 2013-04-10 02:50:14

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [Solved] Conky causes stuttering in OpenGL applications

Which would mean that all my fonts would look ugly?  Is there a way to have a decent looking terminal type font instead that doesn't require xft?

Last edited by z1lt0id (2013-04-10 02:54:45)

Offline

#4 2013-04-11 23:34:24

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: [Solved] Conky causes stuttering in OpenGL applications

Found out the cause of the problem.  It was these lines of code.

##############
# - NVIDIA - #
##############
${voffset 4}${font Ubuntu Mono:style=Bold:size=9}NVIDIA $stippled_hr${font}
${color0}${voffset 2}${font ConkyColorsLogos:size=16}n${font}${color}${goto 32}${voffset -8}GPU Temp:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}${font}${color}°C
${goto 32}GPU Clock:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q GPU2DClockFreqs -t}${font}${color}MHz
${goto 32}Video RAM:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q VideoRam -t}${font}${color}KiB
${goto 32}Driver Version:${alignr}${font Ubuntu Mono:style=Bold:size=9}${color1} ${exec nvidia-settings -q NvidiaDriverVersion -t}${font}${color}

Because conky was calling the graphics card every second to grab this information it impacted on GLXGears and OpenGL everytime Conky updated itself.  I remembed these lines of code and Conky is working fantastically.

Offline

Board footer

Powered by FluxBB