English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Releases

 
 
Thread Tools
Old 25 April 2023, 00:38   #2261
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
Something else that may not be immediately obvious (unless you trace where the calls com from) is that both player code paths are executed by both machines in two player mode. The master doesn't behave like a server in this context, both games are running the game logic. This is why the game has to wait for all the comms and runs at the rate of the slowest machine since they both have to compute the same overall game state.
Karlos is online now  
Old 25 April 2023, 00:41   #2262
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
Quote:
I have a new branch, refactoring/player-code-redux

So far, it should all be nonfunctional and only data locations have been moved about, so if anything breaks in two player mode it means there's some action at a distance that was not characterised last time. The branch at least demystifies these offsets.
all seems to work correct

edit: in 1 and 2 player games
abu_the_monkey is offline  
Old 25 April 2023, 00:42   #2263
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
Quote:
Originally Posted by Karlos View Post
Something else that may not be immediately obvious (unless you trace where the calls com from) is that both player code paths are executed by both machines in two player mode. The master doesn't behave like a server in this context, both games are running the game logic. This is why the game has to wait for all the comms and runs at the rate of the slowest machine since they both have to compute the same overall game state.
that's exactly what I thought I was seeing
abu_the_monkey is offline  
Old 25 April 2023, 01:00   #2264
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
So we can go back to deduplication next then. Tomorrow...zzz
Karlos is online now  
Old 25 April 2023, 01:03   #2265
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
It would appear so

I will test a bit more tonight and post if I find anything off.

edit: 25 minutes of running around various levels in 1 and 2 player games and nothing seems amiss. weapon animation, doors, lifts, lighting, level exits all working as expected

Last edited by abu_the_monkey; 25 April 2023 at 01:30.
abu_the_monkey is offline  
Old 25 April 2023, 11:08   #2266
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
Ok, that's good and expected. I didn't change any code yet other than making sure some of the fields that have been added to the player structure are populated on level initialisation.

It's interesting, it seems like the player weapon is in world space as an actual entity. Maybe this explains the apparent lag sometimes when rotating the view quickly since it's position and orientation would need to be updated. I'd always assumed that was an intentional effect to make it feel more weighty, but maybe I was a happy accident.
Karlos is online now  
Old 25 April 2023, 20:10   #2267
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
Not directly related, but I've pushed some asset changes to my mod:
* Fixed rocky wall brightness
* Added the blue and red lit versions of the same texture
* Fixed the alignment of the light tile floor/ceiling texture
* Replacement floor texture for one of the less used/interesting ones.
Karlos is online now  
Old 25 April 2023, 21:58   #2268
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
@Karlos

looking good
abu_the_monkey is offline  
Old 26 April 2023, 16:25   #2269
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,109
Older demo, but much better frame rates in PiStorm32Lite:

[ Show youtube player ]

Courtesy of Tom-Cat as before.
Dunny is offline  
Old 26 April 2023, 16:54   #2270
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
Quote:
Originally Posted by Dunny View Post
Older demo, but much better frame rates in PiStorm32Lite:

[ Show youtube player ]

Courtesy of Tom-Cat as before.
The increased frame rate is due to the updated firmware on the PiStorm
abu_the_monkey is offline  
Old 26 April 2023, 17:48   #2271
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,109
Quote:
Originally Posted by abu_the_monkey View Post
The increased frame rate is due to the updated firmware on the PiStorm
Yes indeed. As far as I am aware, the trick was to allow accesses to chip ram to be bundled up. Small accesses are still slow, but for something like this it has quite a dramatic effect
Dunny is offline  
Old 26 April 2023, 17:54   #2272
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
Quote:
Originally Posted by Dunny View Post
Yes indeed. As far as I am aware, the trick was to allow accesses to chip ram to be bundled up. Small accesses are still slow, but for something like this it has quite a dramatic effect
Kind of like burst mode I guess
abu_the_monkey is offline  
Old 26 April 2023, 18:02   #2273
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
Wow, that is a world of difference. Also, can someone tell him where the shotgun is?
Karlos is online now  
Old 26 April 2023, 20:26   #2274
tomcat666
Retro Freak
 
tomcat666's Avatar
 
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,665
So, with new pistorm32 firmware we get solid 50fps now:

[ Show youtube player ]

And it seems Michal still has some improvements to make.
tomcat666 is offline  
Old 26 April 2023, 20:33   #2275
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
@tomcat666

you should try promoting it to super72 hires (its 400*300) just to see if you get 70fps or not

attached is a pic of winuae running super72 hires through 'newmode' mode promotion tool (jit is enabled in winuae)
Attached Thumbnails
Click image for larger version

Name:	075.png
Views:	51
Size:	57.7 KB
ID:	78772  

Last edited by abu_the_monkey; 26 April 2023 at 20:49.
abu_the_monkey is offline  
Old 26 April 2023, 20:59   #2276
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
Took a short break from the code to revisit some retexturing

[ Show youtube player ]
Karlos is online now  
Old 26 April 2023, 21:07   #2277
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
liking the stone block walls and the blue hues, not sold on the rusty coloured metal riveted wall texture (seems too bright for the rest of the scene)

good work
abu_the_monkey is offline  
Old 26 April 2023, 21:19   #2278
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
Quote:
Originally Posted by abu_the_monkey View Post
liking the stone block walls and the blue hues, not sold on the rusty coloured metal riveted wall texture (seems too bright for the rest of the scene)

good work
The breeze blocks are somewhat pinched from doom, with some modification. As for the rusty one, that's mostly down to unfinished lighting. The rivetted sections are at full illumination. The blue variants of the wall are supposed to be the same wall texture under blue light. This is why the joins between the normal and coloured versions are always dark. I used this trick a lot in the docking ring level.
Karlos is online now  
Old 26 April 2023, 21:20   #2279
abu_the_monkey
Registered User
 
Join Date: Oct 2020
Location: Bicester
Posts: 2,024
lighting, a most powerful tool
abu_the_monkey is offline  
Old 26 April 2023, 21:38   #2280
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,521
I've been giving some thought to mod expansion. We can change all the limits we like within the game engine but the basic fact is, none of the tooling would be able to take advantage or would have any awareness. Equally, the game link data is somewhat directly loaded into memory and any changes would break compatibility with existing mods.

So, what I am going to propose is that every level is able to provide its own floor textures, model textures and sky background, falling back onto the default if nothing is found. These assets have a fixed size, unlike walls and bitmap objects, so loading them in over the top of the resident ones should be entirely safe and non leaky. This can be used in conjunction with the previously described sound bank concept for greater audio variation.

This would go some way into fixing the "sameness" of the level graphics while remaining completely backwards compatible.

I do find the 16 floor textures very limiting, so an alternative approach might be to allow more (the floor index in memory appears to be a byte value, so up to 256), and then have a properties file that is added to a level directory that contains floor definition overrides for zones. This is a bit non trivial since you'd need to know the zone number somehow, before specifying which new, extended floor texture to use. However, a benefit of this is that you can also specify distinct sounds and damage values for each overridden floor type.
Karlos is online now  
 


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alien Breed 3D II The Killing Grounds RTG patch Angus Retrogaming General Discussion 63 14 December 2022 15:20
Alien Breed & Alien Breed '92: SE - delay when picking up items / opening doors Ian support.WinUAE 16 23 December 2016 15:50
Alien Breed 3D II : The Killing Grounds code booklet alexh support.Games 19 10 October 2012 22:17
Alien Breed 3D 2 - The Killing Grounds Ironclaw support.Games 12 13 September 2005 13:07
HD Version of Alien Breed I ? Kintaro request.Old Rare Games 20 31 July 2003 10:48

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:21.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.17221 seconds with 14 queries