Large File Memory

More
17 Dec 2024 05:56 #316836 by kjlty
Replied by kjlty on topic Large File Memory
The existing interface with graphical previews is poor in terms of responsiveness for large files, and there are several GUIs that are better with preview disabled (e.g. gmoccapy qtdragon)

But they are also slow to manipulate the artifact coordinate offset after loading the G-CODE (the coordinates in the preview are updated).

Please Log in or Create an account to join the conversation.

More
17 Dec 2024 06:00 #316837 by kjlty
Replied by kjlty on topic Large File Memory
Sorry, I use Microsoft Translator, I don't know if you can read it.

Please Log in or Create an account to join the conversation.

More
17 Dec 2024 13:20 #316859 by JT
Replied by JT on topic Large File Memory
I created a Flex GUI without a gcode preview or the plotter and it loads and runs a 118MB file with no problems.

I created a test file with this bit of python code
#!/usr/bin/env python3

current = 0.00001
increment = 0.00001
end = 60.00001
nc = []
nc.append('G0 X0.0000 Y0.0000\n')
while current < end:
	nc.append(f'X{current:.5f} Y{current:.5f}\n')
	current += increment
nc.append('M2')
with open('large.ngc', 'w') as f:
	f.writelines(nc)

JT

Please Log in or Create an account to join the conversation.

More
17 Dec 2024 13:25 #316860 by JT
Replied by JT on topic Large File Memory
Change end = 60.00001 to end = 100.00001 and it generates a 198MB file that also loads in a second and runs fine. So the key slowdown is trying to load a file that size into a QPlainTextEdit. I assume but have not tested that the plotter will cause it to be very slow to load.



JT
Attachments:
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
18 Dec 2024 03:41 #316901 by kjlty
Replied by kjlty on topic Large File Memory
I tested that the Flex GUI is very fast without QPlainTextEdit and plotter.


The problem is in QPlainTextEdit, can it be optimized not to load the full G-CODE file?

Please Log in or Create an account to join the conversation.

More
18 Dec 2024 03:49 #316902 by kjlty
Replied by kjlty on topic Large File Memory
Thank you very much for your guidance.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum