Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve management of game data. #223

Draft
wants to merge 63 commits into
base: master
Choose a base branch
from

Conversation

ineveraskedforthis
Copy link
Collaborator

  • Most of the data is moved to c++ dll based on DataContainer (dcon).
  • Add build scripts to build dll/so files and pull updates from dcon repository.
  • Add code generation scripts to manage remaining lua-managed data and wrap calls to dcon into properly typed functions.
  • Drastic speed up of saving and loading: using luajit string buffers and memory mapping instead of bitser.
  • Speed up of update ticks: some expensive functions were moved to shared library
  • Global rewrite to accommodate for new way to manage data with c++
  • Economy update is streamlined.
  • DBM cultural weights are now calculated with iterative process instead of heuristic based on payouts.
  • Add --nopreload launch tag to prevent preloading of all mapmodes on game start: map modes switching is way faster now and the whole preloading thing is probably not needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant