Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Celeste: the stylegrounds, wipes and helpers built for size

Mason Chen447fd4b54fd0
diff --git a/games/celeste/src/style.c b/games/celeste/src/style.c
index c73d8841..3811c88b 100644
--- a/games/celeste/src/style.c
+++ b/games/celeste/src/style.c
@@ -1,3 +1,6 @@
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC optimize("Os") /* not drawn every frame: smaller over faster */
+#endif
/* Stylegrounds: the chapter's parallax backgrounds and effects (Celeste's
* Backdrop, Parallax, Snow, ...), drawn in screen space behind and in front of
* the level. */
diff --git a/games/celeste/src/util.c b/games/celeste/src/util.c
index 0a55fb4f..b744322e 100644
--- a/games/celeste/src/util.c
+++ b/games/celeste/src/util.c
@@ -1,3 +1,6 @@
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC optimize("Os") /* not drawn every frame: smaller over faster */
+#endif
/* Calc.Random (.NET's System.Random), Monocle's eases, the input buttons,
* and sprite animation (Monocle.Sprite). */
#include "celeste.h"
diff --git a/games/celeste/src/wipe.c b/games/celeste/src/wipe.c
index 99021d86..46dcf405 100644
--- a/games/celeste/src/wipe.c
+++ b/games/celeste/src/wipe.c
@@ -1,3 +1,6 @@
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC optimize("Os") /* not drawn every frame: smaller over faster */
+#endif
/* Screen wipes (ScreenWipe and the chapters' own): black shapes over the
* screen, drawn like the game does, as triangles in its 1920x1080 interface. */
#include "wipe.h"