gsx95 / georgguessr

An open source clone of Geoguessr that can be hosted serverless for free in your AWS account
3 stars 0 forks source link

Make room creation asynchronous #34

Closed gsx95 closed 3 years ago

gsx95 commented 3 years ago

When the player creates a room, first check if we can create streetviews with the players settings (e.g. whether we can get the boundaries for every selected city, or whether there is at least one city with x population in the selected country / continent). Then, create just one streetview and let the player begin the game. Trigger a lambda function to fill the room with the missing streetviews. If the player clicks on "Next round", check whether the next streetview is already generated and if not, wait.

This should also minimize the perceived loading times #21

gsx95 commented 3 years ago

Doesn't make any difference, most of the time is spent on getting the nearest streetview via phantomjs, and generating only one streetview takes not significantly less time than generating all of them at once