# Frame Rate Drops Significantly when Plugin is Active

**URL:** <https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826>\
**Category:** Uncategorized\
**Created:** [April 26, 2023, 5:29am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826 "2023-04-26T05:29:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [April 26, 2023, 5:29am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/1 "2023-04-26T05:29:06Z")

</div>

> [@Rendering / Refresh Slows Down Significantly when Plugin is Active](https://forum.glyphsapp.com/t/rendering-refresh-slows-down-significantly-when-plugin-is-active/19209):
>
> 3.0.3 (3086) Edit: Originally I was testing only my plugin but I realised if I have even the original ShowCrosshair on, my rendering and refresh in the edit view gets extremely choppy. Is there some setting I can change? I’m using a 2017 MBP and do not experience these issues in G2. Original Post: My plugin [ShowCrosshairOnSelect](https://github.com/weiweihuanghuang/ShowCrosshairOnSelect) which is based on [ShowCrosshair](https://github.com/mekkablue/ShowCrosshair) by @mekkablue significantly slows down rendering when it’s active. Is there something I’m doing that’s inefficient? I’ve tested it with…

Basically having the same issue again recently. I’m on a MBP 2017 Pro, running macOS Big Sur 11.6.1 (20G224), GA 3.2 (3190).

If I activate any plug in that’s drawing something on the canvas, such as [GitHub - weiweihuanghuang/ShowCrosshairOnSelect: Glyphs plugin for displaying a crosshair](https://github.com/weiweihuanghuang/ShowCrosshairOnSelect) or [GitHub - weiweihuanghuang/Show-Distance-And-Angle-Of-Nodes-In-Corner](https://github.com/weiweihuanghuang/Show-Distance-And-Angle-Of-Nodes-In-Corner)

The frame rate (according to Quartz Debug) drops from 25 to 15 and becomes really laggy.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [April 26, 2023, 6:44am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/2 "2023-04-26T06:44:22Z")

</div>

What version of Python and pyobjc do you have?

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [April 26, 2023, 7:05am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/3 "2023-04-26T07:05:20Z")

</div>

Using Python 3.9.1 (Glyphs), ObjC 7.1

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [April 26, 2023, 7:13am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/4 "2023-04-26T07:13:51Z")

</div>

Can you remove and re-install the Glyphs python? That should give you python 3.10 and pyobjc 9.0.1.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [April 26, 2023, 9:15am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/5 "2023-04-26T09:15:37Z")

</div>

I did that and now have Python 3.11.3, ObjC 9.0.1  
It’s still slow.

Another weird thing which I don’t know if it’s related I noticed when zooming, the lines seem to bounce, or the vertical and horizontal aren’t zooming at the same rate or something (this is with all plugins off):

[https://dl.dropboxusercontent.com/s/k736ems09vw3abt/Zooming.mp4?dl=0](https://dl.dropboxusercontent.com/s/k736ems09vw3abt/Zooming.mp4?dl=0)

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [April 26, 2023, 5:35pm UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/6 "2023-04-26T17:35:54Z")

</div>

Can you try it with a only a few lines of text? Or even only a few glyphs?

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [April 27, 2023, 7:16am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/7 "2023-04-27T07:16:59Z")

</div>

Doesn’t happen with a few glyphs, refresh rate hits mid 30s, for a few lines, it drops to low 20s, then a paragraph it goes back down to ~15.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [May 10, 2023, 2:38am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/8 "2023-05-10T02:38:02Z")

</div>

Any ideas?

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [May 10, 2023, 10:47am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/9 "2023-05-10T10:47:51Z")

</div>

Not really. Just that I would suggest to use less text in the edit view.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [May 25, 2023, 8:32am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/10 "2023-05-25T08:32:54Z")

</div>

I think I discovered one of the culprits that was slowing down Glyphs App performance:

> **[GitHub - florianpircher/Keyboard-Selection-Travel: A Glyphs plugin for using...](https://github.com/florianpircher/Keyboard-Selection-Travel)**
>
> A Glyphs plugin for using the arrow keys to change the node selection. - GitHub - florianpircher/Keyboard-Selection-Travel: A Glyphs plugin for using the arrow keys to change the node selection.

Uninstalling this improves my frame rate.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [May 25, 2023, 8:42am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/11 "2023-05-25T08:42:12Z")

</div>

Interesting. The plugin should be doing close to nothing when the Control key is not held down, but I can have a second look.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [May 25, 2023, 8:44am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/12 "2023-05-25T08:44:09Z")

</div>

I find that even my other plugins that when they are doing nothing slows down the panning and scrolling.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [May 25, 2023, 8:53am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/13 "2023-05-25T08:53:02Z")

</div>

That is a drawback of the pyobjc bridge. Can’t do much about that.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [March 3, 2026, 3:14am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/14 "2026-03-03T03:14:34Z")

</div>

I’m coming back to this problem to ask whether it’s possible write plugins in a way that doesn’t slow down the framerate: even when nothing is being drawn just having a plugin active slows down glyphs app whenever there is more than a few lines of text?

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [March 3, 2026, 6:22am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/15 "2026-03-03T06:22:00Z")

</div>

You need to write a plugin without python, meaning it needs to be written in objectivC or swift.

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [March 3, 2026, 9:28am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/16 "2026-03-03T09:28:49Z")

</div>

Do you have a specific plugin in mind? Perhaps the Python code can be modified to stop processing sooner when the plugin has nothing to draw.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [March 3, 2026, 9:31am UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/17 "2026-03-03T09:31:08Z")

</div>

There is a quite big overhead just calling into python. That on its own can cause a slowdown. But looking at the specific code might help, too.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [March 3, 2026, 12:16pm UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/18 "2026-03-03T12:16:20Z")

</div>

This is the plugin I use most that I have to turn on and off all the time

> **[GitHub - weiweihuanghuang/ShowCrosshairOnSelect: Glyphs plugin for displaying a crosshair](https://github.com/weiweihuanghuang/ShowCrosshairOnSelect)**
>
> Glyphs plugin for displaying a crosshair

I trimmed the code down and made the calls more efficient (haven’t published) but the performance is more or less the same.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [March 3, 2026, 3:30pm UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/19 "2026-03-03T15:30:50Z")

</div>

I had a look a the plugin and changed it quite a bit. Hopefully I didn’t break anything.  
But it is MUCH faster now.

---

<div class="post-metadata">

**Author:** ![oneweioranother](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/oneweioranother/32/273_2.png) [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Post date:** [March 3, 2026, 11:22pm UTC](https://forum.glyphsapp.com/t/frame-rate-drops-significantly-when-plugin-is-active/25826/20 "2026-03-03T23:22:19Z")

</div>

Wow it’s so much faster! Thank you Georg.
