-
Notifications
You must be signed in to change notification settings - Fork 138
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
OutOfMemory error while saving #14
Comments
I'd guess that instead of referencing the mesh GILES is trying to write all the vertex & tri data. How big (vertex/tri count-wise) is this mesh? If you replace it with a lower poly version does this error still occur? |
If I delete manually (in editor, while running) a lot of subobjects of the prefab it does save. However, is there a way to make GILES writting in binary format (which should be quite smaller) or avoiding to write all the vertex & triangles data? |
It should be avoiding writing the mesh data currently; if it's doing that now that is a bug. On writing binary, that would be a good feature request. |
It seems it writes the mesh data for all children of the prefab. |
Ok, it seems that all the children information is not needed. So I can have a 3kb file that loads correctly the full object, instead of a >500MB (deleting half of the children). I'm still trying to figure out why though... it should not serialize those children at all. |
I did a workaround fix: I do not generate children if it's a resource. However I don't think it's the ideal solution, but since I don't need any resource's child, I think it will work for me for now. pb_SceneNode.cs from ln 90
|
I got this error in the console while trying to save a scene from GILES.
I have a (single) kinda complex prefab, but all submeshes should be fine to serialize.
Is there a way I could work around this error?
I tried to build a 64bits version, but the same error appears.
The text was updated successfully, but these errors were encountered: