Potential speed improvement?

For people working on the C++ code.
Post Reply
User avatar
Echo
Member
Posts: 122
Joined: Tue Jul 31, 2012 08:11
Location: Germany

Potential speed improvement?

by Echo » Post

I saw this change to speedup the mapgen: https://github.com/celeron55/minetest/c ... 9c6e6b31ac
It replaced the slow pow function.

Then I stumpled upon this:
https://github.com/jordan4ibanez/minete ... c50bb52757
Ok, it's jordan4ibanez's fork, but it's the same in celeron55's in camera.cpp:
There is usage of slow sin- and pow-function in the digging and bobbing animation. There are faster ways for the sin-function: lookup-tables, approximations, interpolations... http://stackoverflow.com/questions/6091 ... alternatve

Is this worth to be optimized or is it fast enough because it's called only sporadically?

OmniStudent
Member
Posts: 261
Joined: Sat Nov 03, 2012 06:40

by OmniStudent » Post

Any speedup is nice, since there's soooo much use the processor for in this game!

User avatar
Mito551
Member
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Post

yes, please! will you do this?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests