Skip to main content
Participating Frequently
July 11, 2023
Question

CEP performance issues

  • July 11, 2023
  • 1 reply
  • 354 views

Hello,

 

I have been using the CEP engine for a little over a year now to create Premiere Pro extensions. Since the beginning, I have noticed something strange : the longer you use an extension, the slower Premiere Pro (and the extension) gets.

 

To circumvent this issue, what would you recommend? I tried using both CEP 6.0 and 11.0, both have the issue.

 

Is there a way to """reset""" the performance? I already tried to force the garbage collection, but it did not improve things.

 

Also, if I need to call a script function multiple times in a for loop (for example 1000x) to delete clips in Premiere Pro. Should call 1000x the script function from the front-end (JS), or should I call only once with all the information needed to process the for-loop directly inside the JSX?

 

And finally, instead of calling a JSX function every 500ms that takes ~10ms to complete from the JS, would you recommend using the event system? 

 

If there are missing information in my post, don't hesitate to ask them, I'll happily post them.

This topic has been closed for replies.

1 reply

Bruce Bullis
Community Manager
Community Manager
July 11, 2023

>...the longer you use an extension, the slower Premiere Pro (and the extension) gets.

Interesting! You're the first person to report that, since the advent of CEP support in PPro (in 2013), so I'm hopeful that a change to the implementation could improve the behavior.

If you force your extension to be unloaded and reloaded (for example, by changing workspaces without making the panel persistent), does the slowness vanish?

>Should call 1000x the script function from the front-end (JS), or should I call only once with all the information needed to process the for-loop directly inside the JSX?

Crossing the boundary between CEP (JavaScript) and PPro scripting (ExtendScript) is expensive, and to be avoided whenever possible. 

>And finally, instead of calling a JSX function every 500ms that takes ~10ms to complete from the JS, would you recommend using the event system? 

YES. Polling is never recommended.