Skip to content

Commit

Permalink
fix the issue that multi-threading was not actually enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
octarect committed Jul 29, 2024
1 parent 987f757 commit 8f2f116
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ if [[ "${ENABLE_ENGINE_OPTIMIZATION,,}" = "true" ]]; then
fi

log "Starting the server..."
SERVER_OPTS=()
if [[ "${ENABLE_MULTITHREAD,,}" = "true" ]]; then
SERVER_OPTS+=("-useperfthreads" "-NoAsyncLoadingThread" "-UseMultithreadForDS")
fi
log "CMD: $INSTALL_DIR/PalServer.sh $SERVER_OPTS"
steamdo $INSTALL_DIR/PalServer.sh $SERVER_OPTS
log "CMD: $INSTALL_DIR/PalServer.sh ${SERVER_OPTS[@]}"
steamdo $INSTALL_DIR/PalServer.sh ${SERVER_OPTS[@]}

0 comments on commit 8f2f116

Please sign in to comment.