Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cleanup of the render and transformation code #1043

Merged
merged 3 commits into from
Apr 2, 2021
Merged

Conversation

Framstag
Copy link
Owner

@Framstag Framstag commented Apr 2, 2021

No description provided.

Copy link
Collaborator

@Karry Karry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't test it, but looks good.

@Framstag
Copy link
Owner Author

Framstag commented Apr 2, 2021

The main change is the assertion in GenerateParallelWay which before hat a bool return value.

In the end further changes seem to make sense. I would like to separate the caches from the methods that operate on them. All the transform methods could be functions that read write to streams/buffer/caches. That would likely simplify the code.

Recent Clion versions now show function complexity warnings. There also a number of methods in MapPainter that have such alarm. This is another place we have to clean up before things get out of control ;-)

But since I was sidetracked form hillshading I only did the obvious and quick to improve...

@Framstag
Copy link
Owner Author

Framstag commented Apr 2, 2021

See #1044 and #1045

@Framstag Framstag merged commit b81c8b1 into master Apr 2, 2021
@Framstag Framstag deleted the render_cleanup branch April 2, 2021 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants