KO2CV - 0.90
Moderators: Rodolfo, Moderators, Rodolfo, Moderators
- Steve Camber
- Mad! 7000+ poster!
- Posts: 7807
- Joined: Sat Jun 16, 2001 12:00 am
- Location: Sheffield, England
- Contact:
KO2CV - 0.90
Features
8 tactics mode temporarily removed for this release to allow PM tactics to be used.
75% speed added. 25% speed removed.
Due to the nature of how the speed is controlled, 75% speed can look a bit jerky.
Here's what the CPU decides to do every 1/50th of a second in the 3 modes
100% = DRAW DRAW DRAW DRAW DRAW DRAW DRAW DRAW etc
75% = DRAW DRAW DRAW Pause DRAW DRAW DRAW Pause etc
50% = DRAW Pause DRAW Pause DRAW Pause etc
So therefore 75% does not look as smooth as 100% or 50%. See? Good!
The system I have implemented allows for the speed to be changed anywhere from 1% to 100%.. Not over 100% unfortunately Only these 3 speeds are currently available, but if someone feels their life will be incomplete without a 29% speed, then this is simple to do.
Download
http://www.camber.demon.co.uk/KO2CV
8 tactics mode temporarily removed for this release to allow PM tactics to be used.
75% speed added. 25% speed removed.
Due to the nature of how the speed is controlled, 75% speed can look a bit jerky.
Here's what the CPU decides to do every 1/50th of a second in the 3 modes
100% = DRAW DRAW DRAW DRAW DRAW DRAW DRAW DRAW etc
75% = DRAW DRAW DRAW Pause DRAW DRAW DRAW Pause etc
50% = DRAW Pause DRAW Pause DRAW Pause etc
So therefore 75% does not look as smooth as 100% or 50%. See? Good!
The system I have implemented allows for the speed to be changed anywhere from 1% to 100%.. Not over 100% unfortunately Only these 3 speeds are currently available, but if someone feels their life will be incomplete without a 29% speed, then this is simple to do.
Download
http://www.camber.demon.co.uk/KO2CV
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
- Steve Camber
- Mad! 7000+ poster!
- Posts: 7807
- Joined: Sat Jun 16, 2001 12:00 am
- Location: Sheffield, England
- Contact:
66% looks quite similar to 75%.. just a bit slower!
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
Re: KO2CV - 0.90
Steve Camber wrote:
8 tactics mode temporarily removed for this release to allow PM tactics to be used.
Bad bad bad
Let Robert play with his Oracle disk. Bring back the 8 tactics!
Steve Camber wrote:The system I have implemented allows for the speed to be changed anywhere from 1% to 100%.. Not over 100% unfortunately Only these 3 speeds are currently available, but if someone feels their life will be incomplete without a 29% speed, then this is simple to do.
Shouldn't this be anywhere from 2% to 100% in steps of 2%?
- Steve Camber
- Mad! 7000+ poster!
- Posts: 7807
- Joined: Sat Jun 16, 2001 12:00 am
- Location: Sheffield, England
- Contact:
Re: KO2CV - 0.90
Abyss wrote:Let Robert play with his Oracle disk. Bring back the 8 tactics!
8 tactics are back in v0.91.
Abyss wrote:Shouldn't this be anywhere from 2% to 100% in steps of 2%?
No.
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
Re: KO2CV - 0.90
Steve Camber wrote:Abyss wrote:Let Robert play with his Oracle disk. Bring back the 8 tactics!
8 tactics are back in v0.91.Abyss wrote:Shouldn't this be anywhere from 2% to 100% in steps of 2%?
No.
Does this mean that the game logic is updated at a higher rate than the screen?
- Steve Camber
- Mad! 7000+ poster!
- Posts: 7807
- Joined: Sat Jun 16, 2001 12:00 am
- Location: Sheffield, England
- Contact:
Imagine drawing a frame, then waiting for 99 frames, that's your 1% speed.
Imagine drawing 99 frames, then waiting for a frame, that's 99% speed.
Game logic is updated once per render.. any faster and the game crashes, or frames would be dropped at least.
Imagine drawing 99 frames, then waiting for a frame, that's 99% speed.
Game logic is updated once per render.. any faster and the game crashes, or frames would be dropped at least.
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
Steve Camber wrote:Imagine drawing a frame, then waiting for 99 frames, that's your 1% speed.
Imagine drawing 99 frames, then waiting for a frame, that's 99% speed.
Game logic is updated once per render.. any faster and the game crashes, or frames would be dropped at least.
Therefore, and since the Amiga screen update is fixed at 50Hz for PAL systems, I think that screen updates can only be done 50 times per second, therefore skipping one results in 98% speed, not 99%.
- Steve Camber
- Mad! 7000+ poster!
- Posts: 7807
- Joined: Sat Jun 16, 2001 12:00 am
- Location: Sheffield, England
- Contact:
Yes, the VBL clock runs at 50Hz.
So at 1% speed, the amiga just counts up 50 frames in the 1st second. In the next second the amiga just counts up 49 frames. Then for the final frame of the 2nd second it goes through the logic loop and draw the players in their new positions.
At 99% speed, in the 1st second the amiga does 50 logic+renders. In the next second it does 49 logic+renders, followed by 1 wait where it does nothing.
Does that make sense?
So at 1% speed, the amiga just counts up 50 frames in the 1st second. In the next second the amiga just counts up 49 frames. Then for the final frame of the 2nd second it goes through the logic loop and draw the players in their new positions.
At 99% speed, in the 1st second the amiga does 50 logic+renders. In the next second it does 49 logic+renders, followed by 1 wait where it does nothing.
Does that make sense?
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
- Bounty Bob
- 5000+ Poster!
- Posts: 5267
- Joined: Sun Sep 19, 2004 7:16 pm
- Steve Camber
- Mad! 7000+ poster!
- Posts: 7807
- Joined: Sat Jun 16, 2001 12:00 am
- Location: Sheffield, England
- Contact:
Here's the offending code:
Code: Select all
gGameSpeeds: dc.w 100
dc.w 75
dc.w 50
public DoVBlank:
movem.l d0,-(a7)
move.w GameSpeedOption(A4),d0
lea gGameSpeeds,a0
lsl.w #1,d0
move.w (a0,d0),d0
b_waitvbl1:
TST.W bVBlank(A4)
BEQ b_waitvbl1
CLR.W bVBlank(A4)
b_loopVBL:
add.w d0,gVBLcountup
cmp.w #100,gVBLcountup
bge b_noMoreVBL
CLR.W bVBlank(A4)
b_waitvbl2:
TST.W bVBlank(A4)
BEQ b_waitvbl2
bra b_loopVBL
b_noMoreVBL:
CLR.W bVBlank(A4)
sub.w #100,gVBLcountup
movem.l (a7)+,d0
rts
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "
Ask me about online KO2 https://kickoff2.net
-
- Moderator
- Posts: 12557
- Joined: Sat Apr 06, 2002 12:00 am
- Location: Tromsø,Norway
- Contact:
Steve Camber wrote:Here's the offending code:Code: Select all
gGameSpeeds: dc.w 100
dc.w 75
dc.w 50
public DoVBlank:
movem.l d0,-(a7)
move.w GameSpeedOption(A4),d0
lea gGameSpeeds,a0
lsl.w #1,d0
move.w (a0,d0),d0
b_waitvbl1:
TST.W bVBlank(A4)
BEQ b_waitvbl1
CLR.W bVBlank(A4)
b_loopVBL:
add.w d0,gVBLcountup
cmp.w #100,gVBLcountup
bge b_noMoreVBL
CLR.W bVBlank(A4)
b_waitvbl2:
TST.W bVBlank(A4)
BEQ b_waitvbl2
bra b_loopVBL
b_noMoreVBL:
CLR.W bVBlank(A4)
sub.w #100,gVBLcountup
movem.l (a7)+,d0
rts
I'm very offended by this post.
-----------------------------
Silver Cup 2019, LAA 2015, reigning Scandinavian Champ
Founder of FÖKOF, FAKO and The People's Lockout!
WC-Host 2014 and 2017
Il portiere è mongoloide!
http://www.yearnlydom.rocks
I'm a Norwegian boy, I make rock music
Silver Cup 2019, LAA 2015, reigning Scandinavian Champ
Founder of FÖKOF, FAKO and The People's Lockout!
WC-Host 2014 and 2017
Il portiere è mongoloide!
http://www.yearnlydom.rocks
I'm a Norwegian boy, I make rock music
Who is online
Users browsing this forum: No registered users and 2 guests