| Anonymous | Login | Signup for a new account | 2025-11-07 07:21 UTC |
| My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0004471 | Zandronum | [All Projects] Suggestion | public | 2025-03-22 12:39 | 2025-03-22 14:07 | ||||||||
| Reporter | IlyStr | ||||||||||||
| Assigned To | |||||||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | ||||||||
| Status | confirmed | Resolution | backport later | ||||||||||
| Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 | ||||||||
| Product Version | 4.0-beta | ||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0004471: Add more math functions to Decorate | ||||||||||||
| Description | I mean FRandomPick(float[]), RandomPick(int[]), Cos(float), Sin(float), Tan(float), ACos(float), ASin(float), ATan(float), ATan2(float, float) [Alias: VectorAngle(float, float)], Round(float), Ceil(float), Floor(float), Min(float[]), Max(float[]), Clamp(float, float, float). I think it will be easy to implement these functions in Decorate, because C\C++ already has libraries that calculate these functions (except #randompick(#[])). | ||||||||||||
| Attached Files | |||||||||||||
Notes |
|
|
IlyStr (reporter) 2025-03-22 13:17 edited on: 2025-03-22 13:20 |
And RandomPick is actually many times more necessary than trigonometry and rounding, because here is a comparison of the same function but only using RandomPick and Random GZdoom: RandomPick(64, 192) Za: (128 + ((Random(0, 1)*2)-1)*64) And this way every function call imitation, the optimization after 3-8 repeats per tic goes somewhere far away... |
|
Kaminsky (developer) 2025-03-22 14:07 |
This won't happen until we upgrade our GZDoom base and backport these functions, which won't be until at least 4.0 or later. |
| Only registered users can voice their support. Click here to register, or here to log in. | |
| Supporters: | No one explicitly supports this issue yet. |
| Opponents: | No one explicitly opposes this issue yet. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2025-03-22 12:39 | IlyStr | New Issue | |
| 2025-03-22 13:17 | IlyStr | Note Added: 0024290 | |
| 2025-03-22 13:20 | IlyStr | Note Edited: 0024290 | View Revisions |
| 2025-03-22 14:07 | Kaminsky | Note Added: 0024292 | |
| 2025-03-22 14:07 | Kaminsky | Status | new => confirmed |
| 2025-03-22 14:07 | Kaminsky | Resolution | open => backport later |
| Copyright © 2000 - 2025 MantisBT Team |