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

Use use_chunks and chunk_dimensions are not loaded properly #170

Open
Hugal31 opened this issue Nov 1, 2023 · 1 comment
Open

Use use_chunks and chunk_dimensions are not loaded properly #170

Hugal31 opened this issue Nov 1, 2023 · 1 comment

Comments

@Hugal31
Copy link

Hugal31 commented Nov 1, 2023

The settings use_chunks and chunk_dimensions are not loaded properly when launching the game.
They work in the editor and are saved in the scene file under "Performance/...", but when running the game, they return to the default values.

If I add a print in _on_transforms_ready, we can see the difference between in-editor and in-game:

if not transforms or transforms.is_empty():
	clear_output()
	update_gizmos()
	return

print("Set transforms. Mode is %d, use_chunks is %s and chunk_dimensions is %s" % [render_mode, use_chunks, chunk_dimensions])
match render_mode:
	0:
	if use_chunks:
		_update_split_multimeshes()
# In editor
Set transforms. Mode is 0, use_chunks is false and chunk_dimensions is (30, 35, 30)
# In game
Set transforms. Mode is 0, use_chunks is true and chunk_dimensions is (15, 15, 15)
@STehrani
Copy link

I am having the same issue

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

No branches or pull requests

2 participants