Comments (1)
Animation performance is now very good, initializing and rendering shots almost instantly. If performance needs to be improved in the future, for either shot calculation or shot rendering, the following steps could be taken:
[ ] vectorize continuize
. It is a bit difficult to predict the payoff of doing this, but currently each data point is calculated vi a call to evolve_ball_motion_fast
. Yet ideally, evolve_ball_motion_fast
could accept vector of t
values, thereby avoiding thousands of coordinate rotation calls, etc.
[ ] With uniform time intervals in continuize
, I suspect playback speed / fps * 3
may be a viable dt
for continuize
, instead of playback speed / fps * 2
. See this commit (8ed572c).
[X] Lerp intervals for balls that do not move during the entire trajectory are avoided. However, if a ball is nudged in the 10th second but otherwise static, Lerp intervals are wasted for the whole trajectory. The number of required lerp intervals could be dramatically reduced if the code in Ball.set_playback_sequence
was modified to created long intervals. In the example, the first PosLerp interval could be (x0->x0, y0->y0, z0->z0), dur 10s
[ ] fastmath=True
could potentially make my numba functions faster / further improvement and refinement.
from pooltool.
Related Issues (20)
- Rk x w HOT 1
- Undo shot does not store cue elevation HOT 1
- xml error when save new table HOT 6
- Can not install panda3d 1.10.10 HOT 3
- Pip installation not working correctly HOT 6
- Non-frictionless ball-ball collision HOT 1
- ImportError when trying to load the app (M1 mac) HOT 5
- Windows issue list? HOT 4
- Clings/skids HOT 1
- get_eight_ball_rack is broken HOT 1
- Panda3d 1.10.13 relative mouse mode workaround HOT 1
- Asymmetrical behaviour in Han cushion code HOT 8
- Installing on linux HOT 7
- Touchpad support HOT 7
- Show is played once, then it proceeds to new shot HOT 3
- error re-installing panda3d HOT 3
- Cut induced throw and spin induced throw HOT 3
- Getting "Can't instantiate abstract class Snooker with abstract method copy" when game_type=SNOOKER HOT 2
- Essential docstring coverage is missing HOT 3
- Jump or masse shots? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pooltool.