User selectable prediction mode (fixes #9 github issue)

This commit is contained in:
Keith Winstein
2012-02-13 03:50:03 -05:00
parent c34986471c
commit 8c7c5340d4
5 changed files with 71 additions and 10 deletions
+14 -1
View File
@@ -185,6 +185,18 @@ namespace Overlay {
unsigned int send_interval;
public:
enum DisplayPreference {
Always,
Never,
Adaptive
};
private:
DisplayPreference display_preference;
public:
void set_display_preference( DisplayPreference s_pref ) { display_preference = s_pref; }
void apply( Framebuffer &fb ) const;
void new_user_byte( char the_byte, const Framebuffer &fb );
void cull( const Framebuffer &fb );
@@ -208,7 +220,8 @@ namespace Overlay {
glitch_trigger( 0 ),
last_quick_confirmation( 0 ),
last_scheduled_timeout( 0 ),
send_interval( 250 )
send_interval( 250 ),
display_preference( Adaptive )
{
}
};