gsdx-linux-gui: add an option for accurate color clipping

Note: it is only for debug purpose

Sotc testcase 187 fps => 125 fps (2x scaling)
This commit is contained in:
Gregory Hainaut 2015-05-20 09:42:22 +02:00
parent 183af4ece6
commit b52ee6f1f6
3 changed files with 9 additions and 3 deletions

View File

@ -291,6 +291,7 @@ void populate_hw_table(GtkWidget* hw_table)
GtkWidget* paltex_check = CreateCheckBox("Allow 8 bits textures", "paltex");
GtkWidget* acc_blend_check = CreateCheckBox("Accurate Blend", "accurate_blend", false);
GtkWidget* acc_date_check = CreateCheckBox("Accurate Date", "accurate_date", false);
GtkWidget* acc_cclip_check = CreateCheckBox("Accurate Color Clipping", "accurate_colclip", false);
GtkWidget* MT_nvidia_check = CreateCheckBox("Nvidia Multi-Thread support", "enable_nvidia_multi_thread", true);
@ -298,14 +299,15 @@ void populate_hw_table(GtkWidget* hw_table)
gtk_widget_set_tooltip_text(paltex_check, dialog_message(IDC_PALTEX));
gtk_widget_set_tooltip_text(acc_blend_check, dialog_message(IDC_ACCURATE_BLEND));
gtk_widget_set_tooltip_text(acc_date_check, dialog_message(IDC_ACCURATE_DATE));
gtk_widget_set_tooltip_text(acc_cclip_check, dialog_message(IDC_ACCURATE_COLCLIP));
gtk_widget_set_tooltip_text(MT_nvidia_check, "Huge speedup on Nvidia binary driver! No effect otherwise.");
s_table_line = 0;
InsertWidgetInTable(hw_table, filter_label, filter_combo_box);
InsertWidgetInTable(hw_table, af_label, af_combo_box);
InsertWidgetInTable(hw_table, paltex_check);
InsertWidgetInTable(hw_table, paltex_check, MT_nvidia_check);
InsertWidgetInTable(hw_table, acc_blend_check, acc_date_check);
InsertWidgetInTable(hw_table, MT_nvidia_check);
InsertWidgetInTable(hw_table, acc_cclip_check);
}
void populate_gl_table(GtkWidget* gl_table)

View File

@ -104,6 +104,9 @@ const char* dialog_message(int ID, bool* updateText) {
case IDC_ACCURATE_BLEND:
return "Allow to solve the impossible blending error message.\n\n"
"It could be slower when the effect are used.\n\nNote: it requires the 4.5 openGL extension GL_ARB_texture_barrier";
case IDC_ACCURATE_COLCLIP:
return "Debug option to implement the wrapping of color after an overflow\n\n"
"It will be slow when the effect are used!\n\nNote: it requires the 4.5 openGL extension GL_ARB_texture_barrier";
#endif
default:
if (updateText)

View File

@ -65,6 +65,7 @@ enum {
IDC_STATIC_TCOFFSETY,
IDC_PALTEX,
IDC_ACCURATE_BLEND,
IDC_ACCURATE_DATE
IDC_ACCURATE_DATE,
IDC_ACCURATE_COLCLIP
};
#endif