Remove 30fps cap from playgrounds (flutter/engine#38347)
This commit is contained in:
@@ -53,8 +53,7 @@ std::shared_ptr<RuntimeStage> ComputePlaygroundTest::OpenAssetAsRuntimeStage(
|
||||
|
||||
static std::string FormatWindowTitle(const std::string& test_name) {
|
||||
std::stringstream stream;
|
||||
stream << "Impeller Playground for '" << test_name
|
||||
<< "' (Press ESC or 'q' to quit)";
|
||||
stream << "Impeller Playground for '" << test_name << "' (Press ESC to quit)";
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ static void PlaygroundKeyCallback(GLFWwindow* window,
|
||||
int scancode,
|
||||
int action,
|
||||
int mods) {
|
||||
if ((key == GLFW_KEY_ESCAPE || key == GLFW_KEY_Q) && action == GLFW_RELEASE) {
|
||||
if ((key == GLFW_KEY_ESCAPE) && action == GLFW_RELEASE) {
|
||||
if (mods & (GLFW_MOD_CONTROL | GLFW_MOD_SUPER | GLFW_MOD_SHIFT)) {
|
||||
gShouldOpenNewPlaygrounds = false;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ bool Playground::OpenPlaygroundHere(
|
||||
::glfwShowWindow(window);
|
||||
|
||||
while (true) {
|
||||
::glfwWaitEventsTimeout(1.0 / 30.0);
|
||||
::glfwPollEvents();
|
||||
|
||||
if (::glfwWindowShouldClose(window)) {
|
||||
return true;
|
||||
|
||||
@@ -54,8 +54,7 @@ std::shared_ptr<RuntimeStage> PlaygroundTest::OpenAssetAsRuntimeStage(
|
||||
|
||||
static std::string FormatWindowTitle(const std::string& test_name) {
|
||||
std::stringstream stream;
|
||||
stream << "Impeller Playground for '" << test_name
|
||||
<< "' (Press ESC or 'q' to quit)";
|
||||
stream << "Impeller Playground for '" << test_name << "' (Press ESC to quit)";
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user