10 FPS average increase from changing global work size to 2D

This commit is contained in:
MitchellHansen
2017-03-19 00:42:54 -07:00
parent ec65ef7741
commit 7e5d4ef947
4 changed files with 17 additions and 8 deletions

View File

@@ -104,6 +104,7 @@ int main() {
window.setMouseCursorVisible(false);
window.setKeyRepeatEnabled(false);
window.setFramerateLimit(60);
window.setVerticalSyncEnabled(false);
ImGui::SFML::Init(window);
window.resetGLStates();
@@ -264,7 +265,7 @@ int main() {
handle->set_rgbi(light);
}
if (ImGui::SliderFloat4("Position", light_pos, 0, MAP_X)) {
if (ImGui::SliderFloat3("Position", light_pos, 0, MAP_X)) {
sf::Vector3f light(light_pos[0], light_pos[1], light_pos[2]);
handle->set_position(light);
}