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

d/jak2: finish scene-actor, scene-looper, race-part, rigid-body-plat, debug-part, voicebox #1987

Merged
merged 8 commits into from
Oct 29, 2022

Conversation

xTVaser
Copy link
Member

@xTVaser xTVaser commented Oct 24, 2022

No description provided.

Copy link
Collaborator

@water111 water111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just merge conflicts

Taskfile.yml Outdated
@@ -120,15 +120,15 @@ tasks:
- '{{.OFFLINETEST_BIN_RELEASE_DIR}}/offline-test --iso_data_path "./iso_data/{{.GAME}}" --game {{.GAME}}'
offline-tests-fast:
cmds:
- '{{.OFFLINETEST_BIN_RELEASE_DIR}}/offline-test --iso_data_path "./iso_data/{{.GAME}}" --game {{.GAME}} --dump_current_output --num_threads 10'
- '{{.OFFLINETEST_BIN_RELEASE_DIR}}/offline-test --iso_data_path "./iso_data/{{.GAME}}" --game {{.GAME}} --dump_current_output --num_threads 32'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kinda unrelated, but if we start adding lots of dgos, there's a lot of duplicated work/memory usage because each thread will end up reading all the dgos

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I somewhat expected that tradeoff, do you think it's something that could be easily improved though? Or perhaps when we have many dgos i can try to partition the work by the dgos themselves so there isn't somewhat-random access within a single thread.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I think we can either partition by dgo, or share the ObjectFileDB somehow.

I tried running jak 1 with 16 threads and very quickly ran out of ram

(-> obj draw art-group data 4)
)

(defmethod init-skeleton! krew-npc ((obj krew-npc))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems kinda confusing to have both initialize-skeleton and init-skeleton!. Maybe init-skeleton! could be init-art or something like that?

@water111 water111 merged commit 760e11a into open-goal:master Oct 29, 2022
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.

None yet

2 participants