mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-14 15:02:50 +03:00
Optimization to reduce almost to zero allocations during frame rendering in ecode (this gives around 6% perf gains).
This commit is contained in:
@@ -1905,12 +1905,9 @@ void LSPClientPlugin::drawTop( UICodeEditor* editor, const Vector2f& screenStart
|
||||
|
||||
Float fontSize = editor->getUISceneNode()->getUIThemeManager()->getDefaultFontSize();
|
||||
|
||||
bool isPath = true;
|
||||
std::string path( editor->getDocument().getFilePath() );
|
||||
if ( path.empty() ) {
|
||||
path = editor->getDocument().getFilename();
|
||||
isPath = false;
|
||||
}
|
||||
bool isPath = !editor->getDocument().getFilePath().empty();
|
||||
std::string path( !isPath ? editor->getDocument().getFilename()
|
||||
: editor->getDocument().getFilePath() );
|
||||
|
||||
Color textColor( editor->getColorScheme().getEditorColor(
|
||||
mHoveringBreadcrumb == editor ? SyntaxStyleTypes::Text : SyntaxStyleTypes::LineNumber2 ) );
|
||||
|
||||
Reference in New Issue
Block a user