[INC] ColorLib
ColorLib is built as a replacement for Colors, it uses a a less naive approach to formatting messages to improve the performance of C* functions.
Why? The reason for this is that Colors and More Colors both make heavy use of many ReplaceString operations each one looping through the buffer being formatted, whereas this could be avoided by writing a single pass formatter as used here and was done for ColorVariables. And to why replace ColorVariables? it also adds extra overhead with forwards and allowing for more "dynamic" colors, which isnt always needed. So ColorLib was created. Performance: ColorLib is currently twice over twice as fast as MultiColors when using CPrintToChat, further and improved benchmarks will be availible at the GitHub Repository Example: Code:
#pragma semicolon 1 |
Re: [INC] ColorLib
Think I'll add support for this to my ST3 syntax highlighting. Very nice stuff.
|
Re: [INC] ColorLib
This is awesome, thanks for this.
|
Re: [INC] ColorLib
Thanks, I'd originally planned this as an extension, but spent too much time fighting with AMBuild, so that has been delayed till I either stop hating it or I wait uppon the Rust bindings.
I shall be improving color customisation by making the color generator configurable without touching code with a config file. |
Re: [INC] ColorLib
Thanks for this! I'm going to be using this in the next version of my Deathmatch plugin.
|
Re: [INC] ColorLib
:bacon!:
Will already used in TTT (release soon). :up: |
Re: [INC] ColorLib
Already using in my plugins.
Clean code, good job. |
Re: [INC] ColorLib
Hey I'm running into some chaos when using the inc.
https://imgur.com/66hdoXA.png The stuff -> PHP Code:
|
Re: [INC] ColorLib
"{olive][VSH 2]{default} %s"
You're missing a closing brace for olive. Should be: "{olive}[VSH 2]{default} %s" |
Re: [INC] ColorLib
Quote:
I made a small reproduction plugin and fat-fingered that. With fixed code:
Spoiler
Provides this output:
Spoiler
|
All times are GMT -4. The time now is 02:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.