- Posts: 13
- Thank you received: 0
Large File Memory
1 year 10 months ago #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).
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 to join the conversation.
1 year 10 months ago #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 to join the conversation.
1 year 10 months ago #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
JT
I created a test file with this bit of python code
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 to join the conversation.
1 year 10 months ago #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
Attachment not found
JT
Please Log in to join the conversation.
1 year 10 months ago #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?
The problem is in QPlainTextEdit, can it be optimized not to load the full G-CODE file?
Please Log in to join the conversation.
Time to create page: 0.275 seconds
