[drape] Faster RenderBucket

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-01 16:10:22 +00:00
committed by map-per
parent bb9637041d
commit bf07edbc33
17 changed files with 90 additions and 129 deletions

View File

@@ -11,8 +11,8 @@ namespace df
namespace
{
double constexpr kValidPathSplineTurn = 15 * math::pi / 180;
double constexpr kCosTurn = 0.999989561; // cos(kValidPathSplineTurn)
double constexpr kSinTurn = 0.004569245; // sin(kValidPathSplineTurn)
double constexpr kCosTurn = 0.999989561; // cos(kValidPathSplineTurn)
double constexpr kSinTurn = 0.004569245; // sin(kValidPathSplineTurn)
double constexpr kRoundStep = 23;
int constexpr kMaxStepsCount = 7;
@@ -122,11 +122,6 @@ ref_ptr<PathTextLayout> const PathTextContext::GetLayout() const
return make_ref(m_layout);
}
void PathTextContext::BeforeUpdate()
{
m_updated = false;
}
std::vector<double> const & PathTextContext::GetOffsets() const
{
return m_globalOffsets;