-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
If you do it quick'n'dirty, your code quality will suffer! #133
Comments
Create the branch based on #67 |
LuaJIT profiler works! It's findings: but still as you guys mentioned: |
Fix constructor dependency injection! Worth testing passing dependencies as parameters on functions? Best would be to have locals in init.lua and then passing those to classes, like: |
Nope! It is also used to check, if an entity somehow changed and needs to be synced. But worth improving it. Gut feeling tells me, cache clean up, isn't 100% reliable. |
Debug setting for multiple instances to avoid unecessary resource/performance usage. Save pid in file. New settings file. Edit: Double checked yesterday, looks fine for now! |
Chop of |
I am not able to do this and won't do it. If there is any contributer interested in go for it, but it's waste of time. Base64_ffi is fast enough. |
Add toggle setting for pprint and pformat. It's executed each frame and is not necessary, when log level is |
Add checks before sending wrong network data. Some mandatory tables are nil now and then. Leads to wrong assumptions. |
If an entity was serialized and sent to anyone and then it got deserialized, it can happen, that the deserialized entity is the same as on the other peer. Sounds awesome? Yes and no. When Minä got synced, it's a huge problem. Therefore double check when an entity was deserialized and a similiar one was found, whether nuids are matching, if not check the owner and guid are the same, if not create a new entity and do not reuse existing entities. |
Maybe @aaptel can help me with this? We can have a discord call, when you are free! |
Wise double checking this? |
I'm missing a lot of context here. I don't see prepareForVSC in NoitaPatcherUtils.lua |
Use GitHub Copilot for generating unit tests. Is there a cli copilot version? |
White- instead of blacklisting entities. |
Yoo, dependency hell led me to use lua globals. Guess what?! Performance sucks so much!
I try to do a quick test comparing performance and continue on reworling code, if performance increases.
My tasks
The text was updated successfully, but these errors were encountered: