diff options
author | nyamatongwe <unknown> | 2002-01-25 05:33:00 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-01-25 05:33:00 +0000 |
commit | 56d916f1209cd0544154d115e254489255738f0a (patch) | |
tree | 01e1b61a88cbe976483abfe72b2cf583b14e1d38 /src | |
parent | bc7264044e1b3f546be9f747857e840defe0b37d (diff) | |
download | scintilla-mirror-56d916f1209cd0544154d115e254489255738f0a.tar.gz |
Removed performance tracing as it cused a divide by zero for Carl.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index f4f4a1b14..4375171d5 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1587,9 +1587,9 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { surfaceWindow->SetClip(rcTextArea); // Loop on visible lines - double durLayout = 0.0; - double durPaint = 0.0; - double durCopy = 0.0; + //double durLayout = 0.0; + //double durPaint = 0.0; + //double durCopy = 0.0; int lineDocPrevious = -1; // Used to avoid laying out one document line multiple times LineLayout ll; while (visibleLine < cs.LinesDisplayed() && yposScreen < rcArea.bottom) { @@ -1603,12 +1603,12 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { // Copy this line and its styles from the document into local arrays // and determine the x position at which each character starts. - ElapsedTime et; + //ElapsedTime et; if (lineDoc != lineDocPrevious) { LayoutLine(lineDoc, surface, vs, ll, wrapWidth); lineDocPrevious = lineDoc; } - durLayout += et.Duration(true); + //durLayout += et.Duration(true); ll.selStart = SelectionStart(lineDoc); ll.selEnd = SelectionEnd(lineDoc); @@ -1645,7 +1645,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { // Draw the line DrawLine(surface, vs, lineDoc, visibleLine, xStart, rcLine, ll, subLine); - durPaint += et.Duration(true); + //durPaint += et.Duration(true); bool expanded = cs.GetExpanded(lineDoc); if ( (expanded && (foldFlags & 2)) || (!expanded && (foldFlags & 4)) ) { @@ -1708,7 +1708,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { rcClient.right, yposScreen + vs.lineHeight); surfaceWindow->Copy(rcCopyArea, from, *pixmapLine); } - durCopy += et.Duration(true); + //durCopy += et.Duration(true); if (!bufferedDraw) { ypos += vs.lineHeight; @@ -1718,7 +1718,7 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { visibleLine++; //gdk_flush(); } - Platform::DebugPrintf("Layout:%9.6g Paint:%9.6g Ratio:%9.6g Copy:%9.6g\n", durLayout, durPaint, durLayout / durPaint, durCopy); + //Platform::DebugPrintf("Layout:%9.6g Paint:%9.6g Ratio:%9.6g Copy:%9.6g\n", durLayout, durPaint, durLayout / durPaint, durCopy); // Right column limit indicator PRectangle rcBeyondEOF = rcClient; |