Dev diary 3 min read

Fairview gets lighter, two weeks of performance work

The town looks the same but takes far less work to draw. More frames and gigabytes freed on computers, and iPhones no longer run out of memory in the Plaza.

Fairview's waterfront at golden hour, with the lighthouse pier, boats and the apartment towers
In-game screenshot Fairview's waterfront at golden hour, with the lighthouse pier, boats and the apartment towers.

For the past two weeks we have been making Fairview lighter. Nothing in town looks different: the same fountain, the same streets, the same shadows. It just takes much less work for your computer or phone to draw it. Here is what changed and what we measured.

On computers: more frames, gigabytes freed

We started by hunting leaks. Visiting the Plaza with a furnished house in view left about 390 MB of pictures behind in graphics memory on every trip, so the game grew heavier the longer you played. That is fixed, along with a smaller build-up from crowd outfits on each round trip. Memory now stays flat.

Then we cut what the town holds at all:

  • Compressed textures are now on for computers. In our tests they saved about 1.25 GB in the Plaza.
  • Furniture loads when it is needed, not all at once, which saved roughly another gigabyte. New pieces arrive in small slices, so the worst frame in our busiest test dropped from about 300 ms to about 50 ms.
  • Shared pictures upload once instead of once per model. With a few smaller cleanups, startup uses about half a gigabyte less and trips into the Plaza are 0.6 to 1.1 seconds quicker.

Then came frame rate. The town's ground (cobbles, pavers, grass and the rest) used to be drawn piece by piece. It is now drawn in a few large batches, and the Plaza went from 327 drawn objects to 235. On a computer slowed down to stand in for an older machine, the Plaza rose from about 58 to 68 frames a second and Elm Street from 87 to 96.

On phones: the Plaza no longer runs out of memory

Phones gained the most. At the start of last week an iPhone would reload the page as you walked into the Plaza, because the game passed the 2 GB a Safari tab is allowed. After eight rounds of work it now stays under that limit:

  • Hypercade's arcade machines and home furniture load as you approach them, not when the game starts.
  • The game lets go of copies, caches and leftover website memory it no longer needs.
  • A simpler loading screen between places saved about 300 MB on its own, and the first walk into the Plaza got quicker, from 6.5 to 8.2 seconds down to 5.3 to 5.7.
  • Phones now come in three tiers, each with settings that suit it.

This week we turned to frame rate. After a while outdoors an iPhone warms up and slows its graphics chip, and walking around town dropped to about 23 to 26 frames a second. Fairview now draws the town in small squares and skips the ones the camera cannot see. On the same warm phone that gives 36 to 41 frames a second, about half as much again, for almost no extra memory.

Smaller fixes

  • On phones, the fog at the edge of view now matches the sky instead of showing a grey wall.
  • The Auto quality setting reads 120 Hz and 144 Hz screens correctly.
  • iPads with a trackpad get the lighter phone version.
  • The town bus shows up on phones again.

What is still to do

We are not done. Our goal for phones is 45 frames a second while you walk around town, and the next big cost is the characters themselves. Our computer measurements so far come from one Mac running Chrome. Windows machines, other graphics cards and other browsers are next on the list. Older computers and phones should notice these changes most.

If Fairview feels slow on your device, tell us what you are playing on. It helps us decide where to look next.

The pier and its red and white lighthouse at sunset, people walking the boardwalk

Announcements2 min read

Welcome to the OurVerse Closed Alpha

OurVerse is open to a small group of testers at a time. Here is what the Closed Alpha is, who it is for, and how invitations work.

In-game screenshot

All news