Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Newby |
I have one script that is around 250 lines long and every time i go to it godot lags.
Is it because of my laptop system isnt good enough.
Can i decrease the lag somehow
can you post the offensive script?
ferrai | 2018-07-25 12:40
Is your project having many many nodes, or many many scenes? (or is it just big?) Any error in the console?
There is this issue but it was for 2.1.4 Text editor lagging on script heavy projects · Issue #9815 · godotengine/godot · GitHub
Zylann | 2018-07-25 12:40
i put my script in github heres a link
GitHub - PotatoNato/The-Historian-Remastered: capstone project
Newby | 2018-07-26 13:06
does it lag only when you open/edit it?
ferrai | 2018-07-26 13:18
I lag only when i veiw and edit the script if its open but im not viewing it godot is fine
Newby | 2018-07-26 21:14
found out that my onready scripts is the thing that lags me but i dont know why im only in the script editor. Is it trying to get the scenes in the editor constantly because its really annoying.
Newby | 2018-07-26 21:47
Is it happening if you use load
instead of preload
?
If it’s due to loading scenes then you could post an issue on Github to raise the problem of scripts loading heavy scenes.
Zylann | 2018-07-26 23:18
turns out i should have been loading instead of preloading. thanks for the advice
Newby | 2018-07-27 07:10
Hey, it’s still a bug regardless The engine should not lag in the editor like that, you should report an issue
Zylann | 2018-07-27 21:57