Who's Online |
89 user(s) are online ( 51 user(s) are browsing Forums)
Members: 0
Guests: 89
more...
|
|
|
|
Re: SDL1 open issues
|
Posted on: 2018/1/17 19:08
#1381
|
Just can't stay away
|
@kas1e I think the memory allocation bit is important too. If we allocate too little, AmigaOS might read/write invalid memory. But now I'm confused. Consider the example with 16 lines of data: http://wiki.amigaos.net/wiki/Intuition_PointerI can understand the 18 lines, the upper and lower parts are for the system. But what is this 4 more "control words" that make total amount of 40 words (20 lines!)? I am not seeing this in the coded example, and unfortunately there is no dynamic allocation. Quote: "The pointer in the example, a standard busy pointer, is sixteen lines high and sixteen pixels wide. Currently, all sprites are two bit planes deep, with one word of data for each line of each plane. The example sprite image consists of 36 words (2 planes * 18 lines = 36 words). Add to this the four reserved words of control information for a total of 40 words of data. See the example below for the complete data definition." *** One possibility would be to create pointer like SDL2 backend does.
|
|
|
|
Re: SDL1 open issues
|
Posted on: 2018/1/15 18:56
#1383
|
Just can't stay away
|
@kas1e
Makefile.amigaos4 fails for me, there is a compiler error related to thread code ("abstime" or something?). Have you modified the source?
Yesterday I tried to just "make" the project but in the linking phase there is a ton of warnings. SO is finished but it seems to crash on SDL_GetTicks() always. Strange. I'm pretty sure this worked in, er, 2015.
Now I'm trying configure + make route (natively).
|
|
|
|
Re: SDL1 open issues
|
Posted on: 2018/1/15 18:06
#1384
|
Just can't stay away
|
@kas1e
I don't remember even howto build SDL1 (it was 2015 last time). I didn't configure it, that much I recall.
But why do want to complicate matters by using pthreads? SDL1 has its native thread code and I was hoping to add similar thing into SDL2.
Does it work any better if you call Mix_CloseAudio before SDL_Quit?
|
|
|
|
Re: SDL1 open issues
|
Posted on: 2018/1/14 10:48
#1386
|
Just can't stay away
|
@kas1e Seems that backend allocates too little memory for the sprite. According to this http://wiki.amigaos.net/wiki/Intuition_Pointer , there should be 32-bit dummy data before and after actual graphics. But code allocates only "before" part (4 extra bytes): https://github.com/adtools/os4sdl/blob ... amigaos4/SDL_os4wm.c#L155It could be fixed like this (didn't have chance to test yet): cursor->Image = IExec->AllocVecTags(4 * (h + 2), AVT_ClearWithValue, 0, AVT_Type, MEMF_SHARED, TAG_DONE ); By the way, do we still have to allocate from CHIP memory or?
|
|
|
|
Re: GPMark
|
Posted on: 2018/1/13 19:18
#1387
|
Just can't stay away
|
@Hedeon
You built a WarpOS version? Cool.
|
|
|
|
Re: SDL1 open issues
|
Posted on: 2018/1/13 19:14
#1388
|
Just can't stay away
|
@kas1e
Please don't change height parameter. Code passes only one byte (8 bits of course) as cursor data. That's why 8 * 1 should be the correct dimension in this case, in my opinion.
There could be more issues in the backend side but I didn't check it yet. It should be easy to make a test case that opens only a window and sets cursor, to simplify testing.
|
|
|
|
Re: Fresh version of Grafx2
|
Posted on: 2018/1/12 18:35
#1390
|
Just can't stay away
|
@kas1e
Yeah, please open a ticket so that thing don't get forgotten. I know that there is no active work on SDL1 but who knows...
|
|
|
|
Re: GPMark
|
Posted on: 2018/1/12 18:34
#1391
|
Just can't stay away
|
A new version is available:
***
2018-Jan-12 - Fixed radial blur in 640 * 480 (still some issues) - Fixed some compiler warnings - Added error print for file open failures - Compiled 320 * 240 window mode binary - Added SDL surface info logging
***
My Sam440 results:
GPmark improved, version: 2018 January 12 Surface dimensions: 320 * 240 Surface is located in RAM Surface must be locked: false Display mode: window Blitting Test: 150.9 Plasma: 135.1 Rotozoomer: 135.1 Rotozoomer Near: 145.2 Rotozoomer Far: 108.9 Radial Blur: 63.1 3D Bunny: 8.3
GPmark improved, version: 2018 January 12 Surface dimensions: 640 * 480 Surface is located in RAM Surface must be locked: false Display mode: fullscreen Blitting Test: 107.1 Plasma: 81.6 Rotozoomer: 79.4 Rotozoomer Near: 99.8 Rotozoomer Far: 53.7 Radial Blur: 18.0 3D Bunny: 8.1
|
|
|
|
Re: GPMark
|
Posted on: 2018/1/7 14:38
#1392
|
Just can't stay away
|
@Tuxedo
I don't know what is resolution used for example in MOS port (you have to ask). If it's 320*240 then you are comparing different things because OS4depot version uses 640*480.
That's why I added a print in my build. No need to guess.
My version is comparable to OS4depot version, that's all I can say.
|
|
|
|
GPMark
|
Posted on: 2018/1/7 14:12
#1393
|
Just can't stay away
|
Since GPMark on OS4Depot seems to be a non-optimized build (?), I made my own using source codes from Aminet. Source code version uses windowed resolution 320*240 and I have doubled that to 640*480 fullscreen, to match the OS4Depot version. Now it also prints the screen resolution and results to the console. This version was built with GCC 4.2.4 using -O2. It is faster on my Sam440EP than the original OS4Depot version. Get the binary + sources here: http://capehill.kapsi.fi/gpmark/GPmark_OS4.lhaMy results: GPmark: width 640, height 480, flags 0x80000000 Blitting Test: 104.7 Plasma: 81.1 Rotozoomer: 78.4 Rotozoomer Near: 100.0 Rotozoomer Far: 52.0 Radial Blur: 17.9 3D Bunny: 7.9
|
|
|
|
Re: SDL1 open issues
|
Posted on: 2017/12/31 17:07
#1394
|
Just can't stay away
|
@kas1e Hmm.. Seems that I forgot to reply. Compositing fork checks graphics.library 53. Then it knows it can use CompositeTags. http://www.amigans.net/modules/xforum ... id=100287#forumpost100287First problem with SDL1 is that for unknown reason it only allows HWSURFACEs in fullscreen mode. Should be fixed. Next problem is that many games and emulators don't really "blit". They "plot" pixels. At worst CPU is writing VRAM one pixel at time and then people say, "it's slow". Third problem is that almost all SDL games are statically linked - so much for quick tests & profits. But I believe I have now ranted enough about this. Once again, if your app is not blitting HWSURFACEs, then don't expect any speedups.
|
|
|
|
Re: SDL2
|
Posted on: 2017/12/25 10:26
#1395
|
Just can't stay away
|
@Raziel
So we have 2 votes for GH and 0 for SF ;)
Let's wait til New Year.
@kas1e
Replied in SDL1 thread.
|
|
|
|
Re: SDL2
|
Posted on: 2017/12/20 18:15
#1397
|
Just can't stay away
|
Would anyone object if SDL2 project was moved from SourceForge to GitHub?
Personally I like GitHub more. SF seems to be full of ads and it feels quite messy and outdated when compared to GH.
GitHub would allow forks and pull requests and perhaps a more "social" open source development.
Is there any reason to keep the project on SF?
|
|
|
|
Re: Bug in Milky-Tracker :-(
|
Posted on: 2017/12/17 15:04
#1398
|
Just can't stay away
|
@sinisrus
Thanks, fix pushed to GitHub. Works by luck in little endian.
|
|
|
|
Re: SDL2
|
Posted on: 2017/12/7 19:31
#1400
|
Just can't stay away
|
@Raziel
This is somewhat off-topic but while I'm testing ScummVM and ResidualVM, can I ask what are your configure options?
I noticed today that if I run basic configure, there is no any default optimization flag enabled for compiler. I haven't tested any so far, but I'm sure that -O2 or even -O3 might give a nice performance boost for both engines.
I ran make with VERBOSE_BUILD=1 parameter to check it.
|
|
|
|