General Ulysses S. Grant Posted October 12, 2020 Has anyone ever wanted to have video in there maps? well, I really haven't. Nevertheless, I have found a way regardless. You know how in a delay scrip you can multiply. you can also divide and get fractions. This is how I get frame rates that aren't 35 fps. Video Map.zip 0 Quote Share this post Link to post
Edward850 Posted October 12, 2020 (edited) You haven't actually changed the framerate with what you have coded here. Delay only accepts an integer*, and you have given it 35/24 which for an integer is 1, not 1.4583333r. The same goes for 35/30 (1) and 35/60 (0) the latter of which would just cause all those frames to either play instantly or also just as if it was 1, depending on the semantics on how delay(0) is treated (Hexen still delays it for 1 tic, I believe base ZDoom ignores it?). As the ACS VM is directly tied to the game's internal thinker logic, it cannot have a frame in-between game tics and thus always runs at 35hz no matter what. You cannot have a fractional delay, let alone of less than 1 tic.*All math in ACS is integers, even the values that appear to have decimal values are also integers, but are internally represented as fixed point integer values. There is no floating point or real decimal values in ACS. You can observe this by typing in "delay(1.0);" and noticing it results in a function that delays for 65536 tics (1 << 16), or just over 31 minutes. Edited October 12, 2020 by Edward850 0 Quote Share this post Link to post
General Ulysses S. Grant Posted October 23, 2020 That explanes it, when I recorded my screen and looked at all the frames, some didn't apper for the correct amount time. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.