English Amiga Board Amiga Lore


Go Back   English Amiga Board > Other Projects > project.Amiga Game Factory

 
 
Thread Tools
Old 19 July 2014, 13:05   #61
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,433
Quote:
Originally Posted by tolkien View Post
I have to look at more sdl sources but I dont understand how a thread can replace a timer.
Just start an SDL thread which will trigger a callback hook into your code. In your code you simply need to see if enough time has passed since the last time and then trigger your event if needed.

I think that's the basic idea anyway.
NovaCoder is offline  
AdSense AdSense  
Old 10 June 2015, 04:39   #62
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,433
Arti,

Here is a quick build of SDL v1.2.15 with my old AGA video code mixed in, haven't managed to test it yet but it should work OK with NetSurf AGA.

Threads and Timers are enabled in this build but not audio (same code as that v1.2.15 RTG I did for you).

Keyboard handling should also be better.


You should probably used these flags for NetSurf AGA (no point using DBL Buffer because NetSurf updates using dirty rectangles):

PHP Code:
flags = (SDL_FULLSCREEN|SDL_SWSURFACE|SDL_HWPALETTE); 


This build is for 040 (needs an FPU!)


Update:

Debug build uploaded...
Attached Files
File Type: zip SDL_AGA_debug.zip (367.8 KB, 59 views)
File Type: c amigaos_video_AGA.c (20.8 KB, 60 views)

Last edited by NovaCoder; 17 June 2015 at 02:46.
NovaCoder is offline  
Old 12 July 2017, 20:52   #63
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,626
can you please help to fix your latest SDL-AGA version,
there is a problem with missing SDL_SYS_JOYSTICK in the link library.
some older version from 2013 have this part, but latest on aminet is missing this.
emufan is offline  
Old 13 July 2017, 00:20   #64
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,433
Quote:
Originally Posted by emufan View Post
can you please help to fix your latest SDL-AGA version,
there is a problem with missing SDL_SYS_JOYSTICK in the link library.
some older version from 2013 have this part, but latest on aminet is missing this.
Hiya,

Yes I remember taking out the joystick code but don't recall exactly why... maybe it was a bit buggy. I'm not doing any Amiga coding these days.
NovaCoder is offline  
Old 13 July 2017, 00:30   #65
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,626
Quote:
Originally Posted by NovaCoder View Post
Hiya,

Yes I remember taking out the joystick code but don't recall exactly why... maybe it was a bit buggy. I'm not doing any Amiga coding these days.
oh, ok. extraction from older link lib went good, so lets see what happens
emufan is offline  
Old 13 July 2017, 01:15   #66
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,433
Quote:
Originally Posted by emufan View Post
oh, ok. extraction from older link lib went good, so lets see what happens
Good luck, hope you can get it working

I should also warn you that the Threading and Timer implementation in all the 68k SDL builds is less than perfect (AFAIK). It's a shame I never got the chance to release a version that I was really happy with.
NovaCoder is offline  
Old 13 July 2017, 01:49   #67
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,626
I do not say a shame - you did a lot with your ports for amigaland, despite the few resources we have.
maybe once you're in the right mood to continue where you stoped
emufan is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nova's Blizzard 1260 NovaCoder Hardware pics 32 09 April 2013 08:17
Nova 9: The Return Of Gir Draxon mai HOL data problems 2 21 November 2009 20:18
Nova's 1200 AGA>VGA Porn...Zetr0 violated! NovaCoder Hardware pics 20 01 September 2009 09:45
No Love Greater than the Love of Moto Zetr0 Hardware pics 15 05 October 2007 18:42
[Fixed] Hard Nova Uukrul HOL data problems 1 17 December 2002 10:12

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 18:43.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.19559 seconds with 15 queries