Ocarina of Time: reduce memory use by 64 MiB for each OoT world past the first

Ocarina of Time: limit parallel output to 2, to not waste memory that doesn't benefit speed
Ocarina of Time: remove swarm of os.chdir()
This commit is contained in:
Fabian Dill
2021-09-03 12:50:26 +02:00
parent 51c38fc628
commit 1b27fc495f
5 changed files with 145 additions and 146 deletions

View File

@@ -82,7 +82,6 @@ def page_not_found(err):
return render_template('404.html'), 404
# Player settings pages
@app.route('/games/<string:game>/player-settings')
def player_settings(game):
@@ -176,10 +175,12 @@ def hostRoom(room: UUID):
return render_template("hostRoom.html", room=room)
@app.route('/hosted/<suuid:room>', methods=['GET', 'POST'])
def hostRoomRedirect(room: UUID):
return redirect(url_for("hostRoom", room=room))
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static/static'),