Roadmap for CE 1.0

Started by WillLem, January 21, 2025, 01:51:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WillLem

Quote from: IchoTolot on February 02, 2025, 07:32:55 PMI can close during searches

Ah OK. So it's only when the form has already gone unresponsive that you can't cancel the search?

I wonder how you're keeping the cursor and I'm not...? My cursor remains active, but appears behind the form. That points to it not being a program-side thing...

WillLem

#31
Fixed various bugs with the Level Search feature.

• Optimised search speed massively - instead of loading each and every node label and analyzing its text, we simply get the level title from the node data and then build a list of the matched nodes. It's gone from around 20 seconds for a search of 9000+ levels to more like 2 seconds! Initial search is now much faster even for large numbers of levels and search results, subsequent searches are near enough instantaneous.

• Choosing a level is also much snappier, as the logic there has also been optimised - we now only load the relevant branches of the tree to which the level belongs, and don't load any UI elements until absolutely needed.

• Added a call for the app to process messages periodically during search; this ensures UI responsiveness, keeps the cursor on top of the form, and allows interacting with the form even during the search process. Due to the search optimisation, it's not really necessary, but it should prevent the form from going unresponsive anyway.

• If no search results are found, the search results list is displayed anyway (with a "No results found" message) and the "Close" button is made visible so the user can return to the level treeview.

namida

...is the Close button not always there?
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

Quote from: namida on February 06, 2025, 08:32:56 PM...is the Close button not always there?

As in "Close Search". It appears when the search results are shown so it's pretty obvious it's for that purpose, but I could rename the button anyway.

namida

Quote from: WillLem on February 06, 2025, 08:41:46 PM
Quote from: namida on February 06, 2025, 08:32:56 PM...is the Close button not always there?

As in "Close Search". It appears when the search results are shown so it's pretty obvious it's for that purpose, but I could rename the button anyway.

You said that the close button is made visible if no results are found. I took this as meaning that if results are found, it wouldn't be there, which seems weird?
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

Quote from: namida on February 06, 2025, 10:11:01 PMYou said that the close button is made visible if no results are found. I took this as meaning that if results are found, it wouldn't be there, which seems weird?

Simple misunderstanding. In the current RC, when no results are found, results are not shown and neither is the "Close" button. So, it's then necessary to do a search which definitely will yield results in order to get the search results and button to show, so that it's then possible to return to treeview.

This bug is now fixed. The results and button are now always shown following a search, regardless of results count.

namida

It should be possible to close without performing a search at all too (eg if the user opens it via a misclick), if it isn't already.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

Quote from: namida on Today at 03:47:06 AMIt should be possible to close without performing a search at all too (eg if the user opens it via a misclick), if it isn't already.

The only way to "open" it is to perform a search. If the search field is empty, nothing happens. And searches are now so fast that even if a user managed to type something by accident and then accidentally trigger the search it wouldn't be too much of an issue. I did put in a "Cancel Search" button at one point, I guess it could be put back for emergencies.