This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 About
 Did you know...
 DYK: Maximizing Efficiency
 Forum Locked
 Printer Friendly
Author  Topic Next Topic  

Rob

USA
2615 Posts

Posted - 02/19/2012 :  20:17:42  Show Profile  Visit Rob's Homepage
Did you know...

If you're not using certain gestures, deleting them via the Actions window will slightly improve StrokesPlus' performance. Each time you draw a gesture, S+ compares it against all possible gestures (even those not assigned to an action). Deleting unused gestures will save a little bit of processing power/time for each drawn gesture.

Cerberus

Netherlands
86 Posts

Posted - 02/20/2012 :  17:21:31  Show Profile  Visit Cerberus's Homepage
Cool, but you might want to correct the typo in the topic.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 02/21/2012 :  19:59:20  Show Profile  Visit Rob's Homepage
Did you know...

Cerberus is a grammar Nazi? To activate, simply f*ck up the spelling of any word on the forum to summon him immediately!

=P
Go to Top of Page

Cerberus

Netherlands
86 Posts

Posted - 02/22/2012 :  03:59:03  Show Profile  Visit Cerberus's Homepage
That is correct. Although, technically, this is not grammar but spelling...oh, and your smiley has no nose.
Go to Top of Page

beholder

60 Posts

Posted - 04/29/2012 :  15:28:32  Show Profile
I hate spelling errors myself. Especially when others do them.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/29/2012 :  15:33:08  Show Profile  Visit Rob's Homepage
I hate double-posts, but not so much when people delete the duplicate :-)
Go to Top of Page

beholder

60 Posts

Posted - 04/30/2012 :  08:31:08  Show Profile
you double-post nazi you :-D

I find this thread really funny
Go to Top of Page

Mech

3 Posts

Posted - 01/20/2020 :  12:55:47  Show Profile
So is it something like 5-10ms or more like 200-300ms time saving per gesture that needs to be checked otherwise?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 01/20/2020 :  12:57:54  Show Profile  Visit Rob's Homepage
I've never actually benchmarked it. I guess it would depend on the CPU power of the machine running S+. I doubt it's something that would be noticeable by a human.
Go to Top of Page

Hard.Wired

84 Posts

Posted - 01/22/2020 :  22:10:30  Show Profile
I concur. I have over 200 gestures and don't notice much of a difference between low end Atom/i3 machines and high end i7 monsters.

However, I do wish it wouldn't eat any CPU cycles until the stroke button was pressed. Is the .net version any better in this regard?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 01/23/2020 :  07:17:28  Show Profile  Visit Rob's Homepage
Unfortunately, the only way to function is using a low level mouse hook, which means S+ has to receive and process every single mouse event, including movements :/
Go to Top of Page

nober

29 Posts

Posted - 11/16/2020 :  10:22:52  Show Profile
Two additional areas may be optimized for efficiency:

data structure
* lists in StrokesPlus.xml sorted by their frequency in descending order
** with most frequent on top (aka <Action> right after <Actions>, <Application> right after <Applications>), it can be done with simple text editor, XML manager that supports drag and drop, or XML parser with methods.

algorithm
* cache compiled code
** Similar to StrokesPlus.NET's underlying Chrome V8 engine, StrokesPlus script code can be cached with Lua's built-in function string.dump that generates compiled code as binary chunk. The following snippet is an example:

tGactExecuted = {} -- if this line doesn't go in Global Lua, wrap it inside if control structure

if not tGactExecuted[gact] then
	io.open(gact, 'wb'):write(string.dump(assert(load/loadfile(script string/file) goes here))):close()
	tGactExecuted[gact] = true
end
loadfile(gact, 'b')(gsx, gsy, gex, gey, gbl, gbt, gbr, gbb)
Go to Top of Page
   Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000