[JH] Lagging on 2.9.0.2

I apologize I can’t be more specific about this bug, if it is a bug, but 2.9.0.2 (both 32 and 64 bit versions) is lagging badly on a specific project of mine.

I’ve a novel I’m working on (current word count of project: 35k words)–so longer than the tutorial, but not War and Peace length either. It has a lot of random notes, folders, tables, metadata, etc. It is an 1.9 project that’s been upgraded but on 2.9.0.1 it ran fine. On 2.9.0.2 selecting a new document/folder in the binder, selecting something in the editor, selecting something from the menu, collapse/expand items in the binder, scrolling in the binder or editor, all takes several seconds of processing time. Actually typing in the editor is fine, but selecting one thing to another lags. Average lag time is 2-4 seconds.

Nothing else on my computer is lagging. I’ve tried enabling/disabling split screens, choosing a document/folder that has very little text, but it still lags. The program has not yet crashed, but I see the “not responding” message on the title bar sometimes before it recovers.

I loaded up the S3 tutorial (which I assume is a native S3 project, not an upgraded one) and it is much snappier. A new blank project filled with 21k words of Lorem Ipsum is very responsive as well. I suspect it’s something to do with this project. Uninstall/reinstall (both 64 and 32 bit versions), cleaning with CCleaner between installs, as well as shut down/restart application and the computer itself, hasn’t helped.

L&L team, is there anything I should try before sending the file to you to analyze? (I know, beta can be hazardous with projects you care about, but I have backups.)

I know it’s the holidays so I don’t necessarily expect y’all to be bug-hunting immediately either. :slight_smile:

Windows 10 Home, 64 bit, Version 1709, Administrator account.
Eight-core processor, 16 GB RAM.
Project is saved to local drive.
Beta version 2.9.0.2, both 64 and 32 bit versions (though I’m currently sticking with 64).

x64 version I had some strange lagging as well. Clicking on the Outliner view button, for instance, or back to the corkboard view, would sometimes take several seconds to make the change in the view. It is not a problem with my computer itself, since it is quite fast. This bug is present in both x86 and x64 versions.

Now that I’ve time to poke around a bit more, here’s some more specifics.

For the newly created test project, I put in another 21k words of Lorem Ipsum into a blank template. I created enough empty folders to make the Binder long enough to require scrolling, but I didn’t have the patience to start adding in tables/metadata/labels/all the extra stuff that my project has. The length of the Binder, when fully expanded, is roughly as long as the fully-expanded Binder in the S3 tutorial, though for expediency most of the text was in about 3-4 Documents wheras the tutorial had them spread out into much shorter Documents.

The S3 tutorial mentioned below is a fresh one, created in beta 2.

Expected behaviour: quick response when selecting different Documents/Folders in the Binder. The blue highlight should follow the cursor smoothly when moving from one Binder object to another, or when moving between Menu items (Navigate, Project, Documents, etc).
Actual behaviour in my project: the blue highlight (marking which part of the Binder the cursor is resting on) lags about 2-4 seconds behind the cursor. Once the highlight is in place, selecting the new Document has about a 2-3 second lag before the new Document is shown in the Editor. This lag seems to remain about the same whether the target Document is blank or has words (usually 1-2k words), tables, etc. Lag for the Menu is more inconsistent: sometimes trying to select the Menu items induce a 2-4 second lag before the blue highlight follows the cursor into the Menu or submenus. Sometimes it’s pretty quick.
Behaviour in S3 tutorial: the blue highlight smoothly follows the cursor without lag. Selecting a new binder item takes about 1 second to display in the Editor. No noticable lag when trying to select Menus or submenus.
Behaviour in test project: same as S3 tutorial. There is no lag as the blue highlight follows the cursor. When the target Document is very short (say, 1-2 lines), the new Document is displayed in the Editor immediately. When the target Document is longer (4,276 words in my test), it takes about 2 seconds to load. No noticable lag when trying to select Menus or submenus.

Expected behaviour: smooth scrolling down the Binder if Binder is too lengthy to fit onto the screen.
Actual behaviour in my project: Binder scrolling is very choppy. After I move my mouse scroll wheel, it might take 2 seconds for the scroll bar to begin moving, and even then it often won’t move all the way. It will jerkily move partway after 2 seconds, and then move the rest of the way maybe 1-2 seconds after that.
Behaviour in S3 tutorial: after fully expanding all the nested items in the Binder, there is a slight lag. The scroll bar moves partially after about 0.5 seconds, and completes the scrolling after a second movement (also about 0.5 seconds), for a total of 1 second to move.
Behaviour in test project: smooth scrolling, no lag.

Expected behaviour: when the screen is in split mode (vertical or horizontal), switching between the editors should be quick.
Actual behaviour in my project: it takes about 2-3 seconds to switch between which editor is selected (highlighted in blue). Whether the Document displayed is blank or not doesn’t seem to matter.
Behaviour in S3 tutorial: switching between Editor windows takes less than half a second.
Behaviour in test subject: switching between Editor windows is immediate (slightly faster than in S3 tutorial).

I’m starting to feel like this might be a hardware issue, or simply due to the complexity of my project, but Task Manager reports I’m using 7% CPU and 25-30% of memory, and that’s with Chrome and Discord going on in the background.

It could be due to the length and complexity of the Binder contents. My Binder in my project is rather long because I divided my novel outline into several subfolders. When partially collapsed (with only the most frequently-used parts expanded), about 1/3 of the Binder’s contents is able to be displayed on my screen at once. If I were to expand every bit of the Binder, the Binder would probably only be able to display 1/5 of the total contents. The contents are nested up to 3 levels deep (root level, subfolder, subfolder). That said, I don’t recall this lag being present in 2.9.0.1. And despite the amount of character sheets and subdocs in my Project, the total file folder is only 3.29 MB.

L&L team: not sure if you were able to replicate this on your end. I didn’t see the topic marked NB/LH/BB/etc, nor did anyone ask me for further info, so I’m not sure if you were looking into this or missed this report. Nevertheless, I updated to beta 3 and here’s the latest (I used the same test projects as before; i.e. I did not regen the new test project or regen the tutorial, but used the same ones generated in beta 2):

Selecting different documents/folders in binder:

My novel: blue highlight follows cursor pretty crisply, occasionally 0.5-1 second of lag (particularly noticable when you alt-tab to Scrivener from another window). When highlight is in place, selecting the document takes about 1 second before the new document is loaded in the editor.
Tutorial: blue hightlight is very responsive, no noticable lag. Selecting new documents takes less than half a second to load.
Test project w/ Lorem Ipsum: same as tutorial. When target document is long (the 4k words) it takes about half a second to load, so slightly longer than tutorial’s documents (which are shorter). When the target document is short it’s pretty much immediate.

Scrolling in binder:

My novel: slight lag in scrolling (about 1-2 seconds). Blue highlight follows cursor pretty crisply, maybe half a second of lag.
Tutorial: scrolling is a little slower than the lorem ipsum, but smooth; no choppy pauses.
Test project w/ lorem ipsum: smooth scrolling, no lag.

Switching between editors:

My project: switching between editors take about 0.5-0.75 seconds.
Tutorial: switching between editors feels immediate.
Test project w/lorem ipsum: switching between editors feels immediate.

Obviously as projects get larger and more complicated there might be some minute lagging. But whereas beta 2 was completely unworkable for me with my project, beta 3 is much improved, though of course I’m still hoping it can be as smooth as the tutorial and the test subject, My PC usage remains around 2-8% CPU and 28-30% RAM. I’m not sure if beta 3 is using memory more efficiently or what, but overall responsiveness has improved for all three cases.

Thank you for all your hard work!

I’m having the exact same issues, so still valid with 2.9.0.3. One addition:

If I mark down a number of files (e.g. a chapter with 3 files) and try to edit a single word, the editor doesn’t react/freeze. I have to select the single file and edit that one word there or it won’t work. It appears “laggy”, for a lack of a better term.

Are you trying to edit files in Scrivenings mode? If so, it is not a lag but a known issue with the beta, that doesn’t allow you to edit the text when in scrivenings mode.

Yes, that’s part of the problem. It worked at first, then it suddenly started lagging, then it stopped working in Scrivenings mode. But even in fullscreen-mode (F11), everything I type lags like nothing good.

As Krastev mentioned, editing in scrivenings mode does not work in the beta - I.e., it has never worked. They haven’t implemented that feature yet in the beta.

And yet, it did work for a whole day and I’m not imagining that. I guess I was lucky for a while. :slight_smile: But if editing Scrivenings doesn’t work, how do you beta-test? Where do you write? Or do you just make new documents and stare at them lovingly?

Nothing to do with the Scrivenings edit issue. I have found that, with a single document selected, if I try start the spell-checker nothing happens. If I select something in the document text (e.g. click somewhere) it works ok.

That’s how it was at first for me too. But now I can’t edit single documents at all anymore.

You can test all the other major features that do work in the beta. Like editing single documents and nearly everything else, except scrivenings and much of compile.

But I guess I’m not clear on what issues you are experiencing. Scrivenings aside. Is it just the lag while editing single documents?

I gathered that I actually found something akin to a bug, we’re just seeming to have communication problems :smiley: I posted it in a new thread and it contains my actual problem (besides the lagging mentioned in the posts up top).