Commit f166bc2a authored by Steve Lhomme's avatar Steve Lhomme
Browse files

direct3d11: call var_InheritInteger("verbose") less often

parent f235d8ff
......@@ -93,6 +93,8 @@ struct vout_display_sys_t
vout_display_sys_win32_t sys; /* only use if sys.event is not NULL */
display_win32_area_t area;
int log_level;
/* Sensors */
void *p_sensors;
......@@ -728,7 +730,7 @@ static void Display(vout_display_t *vd, picture_t *picture)
// to let the vout thread things are not as smooth as it may think
SleepEx(2, TRUE);
}
if (start != 0 && var_InheritInteger(vd, "verbose") >= 4)
if (start != 0 && sys->log_level >= 4)
msg_Dbg(vd, "rendering wasn't finished, waited extra %lld ms", MS_FROM_VLC_TICK(vlc_tick_now() - start));
}
......@@ -833,6 +835,8 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmtp, vlc_video_co
video_format_Clean(fmtp);
*fmtp = fmt;
sys->log_level = var_InheritInteger(vd, "verbose");
return VLC_SUCCESS;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment