Skip to content

Commit bfe7b94

Browse files
bderoloic-sharma
authored andcommitted
Remove 30fps cap from playgrounds (flutter#38347)
1 parent 9a9d9cc commit bfe7b94

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

impeller/playground/compute_playground_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ std::shared_ptr<RuntimeStage> ComputePlaygroundTest::OpenAssetAsRuntimeStage(
5353

5454
static std::string FormatWindowTitle(const std::string& test_name) {
5555
std::stringstream stream;
56-
stream << "Impeller Playground for '" << test_name
57-
<< "' (Press ESC or 'q' to quit)";
56+
stream << "Impeller Playground for '" << test_name << "' (Press ESC to quit)";
5857
return stream.str();
5958
}
6059

impeller/playground/playground.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void PlaygroundKeyCallback(GLFWwindow* window,
145145
int scancode,
146146
int action,
147147
int mods) {
148-
if ((key == GLFW_KEY_ESCAPE || key == GLFW_KEY_Q) && action == GLFW_RELEASE) {
148+
if ((key == GLFW_KEY_ESCAPE) && action == GLFW_RELEASE) {
149149
if (mods & (GLFW_MOD_CONTROL | GLFW_MOD_SUPER | GLFW_MOD_SHIFT)) {
150150
gShouldOpenNewPlaygrounds = false;
151151
}
@@ -227,7 +227,7 @@ bool Playground::OpenPlaygroundHere(
227227
::glfwShowWindow(window);
228228

229229
while (true) {
230-
::glfwWaitEventsTimeout(1.0 / 30.0);
230+
::glfwPollEvents();
231231

232232
if (::glfwWindowShouldClose(window)) {
233233
return true;

impeller/playground/playground_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ std::shared_ptr<RuntimeStage> PlaygroundTest::OpenAssetAsRuntimeStage(
5454

5555
static std::string FormatWindowTitle(const std::string& test_name) {
5656
std::stringstream stream;
57-
stream << "Impeller Playground for '" << test_name
58-
<< "' (Press ESC or 'q' to quit)";
57+
stream << "Impeller Playground for '" << test_name << "' (Press ESC to quit)";
5958
return stream.str();
6059
}
6160

0 commit comments

Comments
 (0)