mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[drape] Faster RenderBucket
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user