Notifications
Clear all

[Closed] MCG LookAt compare

 MZ1

I’m not sure whether this happen only for me or not. when I use a MCG controller, my viewport FPS become so low. Please run this code on your computer, play and check FPS.I used my old laptop, windows 7 64bit, max 2018 update 4, built-in MCG lookAt controller.



Mode = "Max"
-- Mode = "MCG"
SampleCount = 100

with redraw off
(
   resetmaxfile #noprompt
   max tool maximize
   
   Objs = for i = 1 to SampleCount - 1 collect teapot wirecolor:white radius:5 pos:[i*10,0,0]
   Target = point pos:[0,0,1000]
   animate on at time 100 Target.pos.controller[1].value = 100
   
   case Mode of
   (
      "Max" :
      (
         for o in Objs do
         (
            C = o.rotation.controller = lookat_constraint()
            C.appendTarget Target 50
         )
      )
      "MCG" :
      (
         for o in Objs do
         (
            C = o.rotation.controller = MCG_LookAt Targets_Tab:#(Target) Weights_Tab:#(50) targetAxis:3
         )
      )
   )
   
   max tool zoomextents all
)

-- Play and see FPS


4 Replies

fps jumping between 70-140fps. (same spec w7, 2018.4)

3 Replies
 MZ1
(@mz1)
Joined: 11 months ago

Posts: 0

For “Max” or “MCG”? Can you change the mode in script and compare them?

(@rghost)
Joined: 10 months ago

Posts: 0

MCG.

Max’s 90-160fps…

 MZ1
(@mz1)
Joined: 11 months ago

Posts: 0

Well, Thank You, now I’m pretty sure Max version is faster.