Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
General Ulysses S. Grant

Playing Video in doom

Recommended Posts

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 by Edward850

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now