Hello Guest it is April 16, 2024, 09:16:30 AM

Author Topic: High GPU usage workaround  (Read 6257 times)

0 Members and 1 Guest are viewing this topic.

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: High GPU usage workaround
« Reply #10 on: January 19, 2017, 09:08:19 PM »
I doubt you lose steps.  Like i said, all we do is load the matrix and then modify it.  The rest happens in the GPU and will have no effect on the CPU running the planner.

If there is no tool path on the screen, then none of the OpenGL code gets called.  The GUI has to tell the core to update a visible tool path.  So I'm not sure why a screen with no tool path is exercising the GPU other than for DRO updates. 

Steve

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: High GPU usage workaround
« Reply #11 on: January 20, 2017, 01:35:21 AM »
Mauri, did you know there is a command to load the gcode without generating a toolpath.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: High GPU usage workaround
« Reply #12 on: January 20, 2017, 01:47:35 PM »
Sorry Mauri, got your email but just incase others wanted to know too, you can find the code here

http://www.machsupport.com/forum/index.php/topic,30928.0.html

DazTheGas
New For 2022 - Instagram: dazthegas

Offline Mauri

*
  •  328 328
    • View Profile
Re: High GPU usage workaround
« Reply #13 on: January 20, 2017, 02:00:05 PM »
Daz,
Thanks for that, I think this will help those who machine large GCode files for 3 Axis and more importantly those who cut 4 Axis which is much more resource hungry especially with NVidia cards.
Regards,
Mauri.

Offline Mauri

*
  •  328 328
    • View Profile
Re: High GPU usage workaround
« Reply #14 on: January 20, 2017, 06:50:26 PM »
Daz,
I installed the button and script code, however I get the following message.

Script syntax error!
Lua: Syntax error during pre-compilation
[string ""]:1261: unexpected symbol near char(194)

Script Error
Lua:Error while running chunk
attempt to call a nil value
stack traceback:
The PLC is now disabled. Correct the script error and restart.

Not sure what it means?

Regards,
Mauri.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: High GPU usage workaround
« Reply #15 on: January 20, 2017, 07:02:51 PM »
Just copied and pasted into V3233 and ran fine

DazTheGas
New For 2022 - Instagram: dazthegas

Offline Mauri

*
  •  328 328
    • View Profile
Re: High GPU usage workaround
« Reply #16 on: January 21, 2017, 05:45:01 AM »
Daz,
I worked out the problem using the Lua Debug Test.
The issue is that Lua Script File as copied from the Forum, all the lines must have had spaces instead of Tabs.
Once I replaced the individual spaces with Tabs on the Script it all worked fine.
I then had another look at your Video and was the Tab marks.
All good now.
Regards,
Mauri.