Zandronum Chat on our Discord Server Get the latest version: 3.2.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004471Zandronum[All Projects] Suggestionpublic2025-03-22 12:392025-03-22 14:07
ReporterIlyStr 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusconfirmedResolutionbackport later 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version4.0-beta 
Target VersionFixed in Version 
Summary0004471: Add more math functions to Decorate
DescriptionI 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

- Relationships

-  Notes
User avatar (0024290)
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...

User avatar (0024292)
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.

Issue Community Support
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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker