Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
82 user(s) are online (51 user(s) are browsing Forums)

Members: 0
Guests: 82

more...

Headlines

Forum Index


Board index » All Posts (Hans)




Re: Pegasos2 with RadeonHD/RX via bridge
Home away from home
Home away from home


@kas1e

I will try to update the PCI scanning code when I have time.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Any way to emulate 3D from x86 or Apple Silicon?
Home away from home
Home away from home


@MartinW

Quote:
Final point, as I'm sure someone will probably ask. Which 3D stuff do I want to run? Honestly, I'm confused as hell by all the different components and what you need to be able to do what. Any graphics coding I ever did so far was either SDL1 or Raylib. So all this OpenGL, MiniGL, OpenGLES, Warp, WarpNova, WarpSuperDuperNova++ is all just a complete mystery. Right now, I'm trying to test GLFW by afxgroup. On qemu with Radeon HD driver 3.x on R270x the demo "triangle_opengles2" runs, everything else crashes. Obviously everything crashes on Qemu with SM501.

If you've got a Radeon R7 270X working with qemu, then you should be able to use modernish OpenGL. Have you tried running known working 3D games? For example: Spencer Demo, or voxelnoid.

The Voodoo3 is very old, and will be restricted to OpenGL v1.3 (roughly) via MiniGL. So, it would be a big step down from your R7 270x.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Libraries: GLEW / GLFW
Home away from home
Home away from home


@MartinW

Quote:
It does matter. The point is this is a repo that apparently builds and works which implies I’m doing something wrong. If it turns out that the examples are known to not work then sure, I’ll look at them and submit a PR but first step is clib2 version of ogles2 and see where that gets us.

It's a good question if the example is supposed to compile as-is. I suspect not, though.

My preference would be for glfw3 to include an autoinit stub, so that it's loaded automatically.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: compositing engine technical talks
Home away from home
Home away from home


@kas1e

Quote:
What of those CompositeEngine can't do ? Blending, fading, scaling, rotation and duplication for sure can, and all the other stuff too ?

As written, the compositing engine doesn't do stuff like contortion, blurring, etc. It's theoretically possible to write code to do all those things using CompositeTags(), though.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Libraries: GLEW / GLFW
Home away from home
Home away from home


@MartinW

Quote:
Note that I’m not doing anything except trying to compile afxgroups code. I’ve not be able to get started on mine yet.

It doesn't matter. The reason for those errors remains the same. Either you have an autoinit stub library that sets up ogles2.library for you, or you have to write that code yourself.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Libraries: GLEW / GLFW
Home away from home
Home away from home


@MartinW

IOGLES2 is the ogles2.library interface pointer. You clearly haven't opened the ogles2.library and got its "main" interface. Ideally, there would be an autoinit static library that would do it all for you, but I don't think one exists. Maybe that could be added to the glfw3 port for convenience?

Anyway, you need to do something like the following:
#include <proto/exec.h>
#include <proto/ogles2.h>

#define MIN_OGLES2_VERSION 3

struct Library *OGLES2Base NULL;
struct OGLES2IFace *IOGLES2 NULL;

BOOL openLibs() {
    const 
char *libName "ogles2.librbary";
    
unsigned minLibVer MIN_OGLES2_VERSION;
    
OGLES2Base OpenLibrary(libNameminLibVer);
    if(!
OGLES2Base) {
        
printf("Couldn't open %s version %u or higher.\n"libNameminLibVer);
        return 
FALSE;
    }
    
IOGLES2 GetInterface(OGLES2Base"main"1NULL);
    if(!
OGLES2) {
        
printf("Couldn't get %s's main interface.\n");
        return 
FALSE;
    }
    return 
TRUE;
}

void closeLibs() {
    if(
OGLES2) {
        
DropInterface(IOGLES2);
        
IOGLES2 NULL;
    }
    if(
OGLES2Base) {
        
CloseLibrary(OGLES2Base);
        
OGLES2Base NULL;
    }
}


NOTE: I'm assuming you're compiling with __USE_INLINE__ defined. Otherwise you need to add IExec-> in front of the OpenLibrary() and other exec.library calls.

Your code should call openLibs() at the start of main(), and closeLibs() on exit.

Hans

P.S., The ogles2.library isn't newlib or clib2 specific.

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@balaton

Quote:
It would be interesting to see what numbers @Hans gets for the same scsispeed test to see if it's slower there or it's really just slower compiling code with TCG.


MKSoft ScsiSpeed 4.2  Copyright © 1989-92 MKSoft Development
AmigaOS4 port by Stéphane Guillard
------------------------------------------------------------
CPU68020  AmigaOS Version54.56
Device
peg2ide.device:0


Testing with a 512 byte
MEMF_FASTLONG-aligned buffer.
Read from SCSI:    639236 bytes/sec

Testing with a 16384 byte
MEMF_FASTLONG-aligned buffer.
Read from SCSI:  17973734 bytes/sec

Testing with a 1048576 byte
MEMF_FASTLONG-aligned buffer.
Read from SCSI:  79691776 bytes/sec

Testing with a 16777216 byte
MEMF_FASTLONG-aligned buffer.
Read from SCSI:  76260072 bytes/sec


To me, it looks like the whole system is sluggish. For example, the AmiDOCK icon flashing is visibly slower than on my PowerPC machines (when starting a program from the dock).

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@geennaam

I just tested bboot, and booting on my system is now down to about 23 seconds. It has the added bonus that I can update the kernel modules without needing to start the emulator, upload the new files, and reboot the emulator again.

Good enough for now...

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@geennaam

Thanks. That's the information I was looking for.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@geennaam

Quote:
A laptop with a Core-i5 1135G7 should give similar performance to my system. The raw CPU emulation speed is good. It's the gfx part that is a bit slower.

Okay. My line of questioning is trying to gauge whether the slowness is my specific hardware. The answers I'm getting tend to be generic emulation issues, whereas I'm looking into whether my system's slowness is simply the result of a slower machine, and how much of a boost upgrading would bring (money is tight, so I'm not going to upgrade on a whim).

I have upgraded to the latest release candidate. No performance change so far. I'll try bboot next. Right now, loading the kickstart modules takes about 12 seconds, which is longer than your total boot time...

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@geennaam

Quote:
I have a Core i5 10400F with 8 GB ddr4.

What's the max clock speed? I'm using a Core i7, but it's a laptop (max clock 2.6GHz).

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@geennaam

Quote:
From entering command to WB fully loaded takes about 10 seconds.

And I'm running Linux/QEMU+bboot0.4 from an old mechanical HDD.

Version of sm502 driver is 53.9

What are your machine's hardware specs?

Is that with a self-compiled version of qemu? Or an official build?

I'm still using v8.0.0 downloaded from the website (Windows, not in a position to try out Linux).

I should try out bboot. IIRC, kas1e said that's faster than amigaboot.of.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@balaton

Quote:
Slow loading can have two causes, going through emulated ide device can be slow this could be fixed by virtio disk driver or having to JIT compile the executable the first time it's seen, there's probably not much that can be done with that other than optimising TCG PPC emulation)...


Is it universally sluggish for everyone using emulation? Or is it my older laptop?

Bear in mind that I'm used to real hardware (X5000 & A1222), so I'm used to the system being fast and responsive.

@Maijestro
Quote:
38 seconds is better than 1.5 minutes. They still haven't addressed whether they use the SFS file system.

Yes, it's a huge improvement. My system partition is SFS\02, which is normally faster than the older FFS.

@joerg
Quote:
As long as nvram isn't supported and you can't use U-Boot variables like peg2ide_xfer (or something similar) to configure the AmigaOS IDE driver to use UDMA it's only using slow PIO transfers.

I completely forgot that the old IDE drivers defaulted to PIO mode. Shows how long it's been since I last used an A1-XE...

If balaton is right about the nvram.config files, then IDE DMA should be enabled on my machine. The kicklayout has nvram.config included, and peg2ide_xfer=FFFF.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@all

Finally got round to trying out m3x's beta driver. The boot time drops down to about 38s, and there's no more long black screen delay at the start.

The system still feels sluggish, though. Odyssey takes about 18s for initial start after booting (drops to just under 5s on second run).

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: compositing engine technical talks
Home away from home
Home away from home


@kas1e

Quote:
So its "compositing window manager" is not the feature of only Radeon cards, but also of Nvidia ones too ?

It isn't a graphics card feature at all. The compositing window manager literally uses the 3D GPU for compositing.

On AmigaOS 4 it only works on Radeon cards, because nobody went back and updated the drivers for older graphics cards (assuming thy have a capable enough GPU).

Quote:
So, theoretically, all this "compositing window manager", should be just done in the Warp3D, and be used by the system. That probably why one of Frieden brothers (Hans, if i remember right), wrote that they wish to use Gallium3D for compositing engine. So to be kind of the same on other OSes, and so be able to use it more easily maybe and not bother with CompositeTags or whatever..

You should be able to do compositing effects with Warp3D. They decided that the best option for OS 4 was to add a new function to the graphics.library. I don't think they'd drop CompositeTags() for Gallium3D. Rather, all graphics acceleration would go through Gallium3D.

Quote:
I think it was created to be just the same Compositing window manager as on other OSes, just where to make a feeling like something OS4 specific only :)

I mean, what it do, what all other compositing window managers can't do ? Or, what it can't do, what others can do ?

I doubt it was created to "make a feeling like something OS4 specific." They needed a way to make it work, and AmigaOS didn't have a modern 3D graphics system ready yet.

Quote:
No no, what i mean is that CompositeTags have a tags, for have a scaling, and in the includes fo compistetags,i find that only "lenear" kind of scaling is implemented (in hardware).

I.e. in E-UAE, LiveForIt made a 640x256 low-res resolution looks scalled in fullscreen on 1920x1080 : but scaling can be of different algos, linear, bilenear, with some effects on top like x2 and so on. With CompositeTags, we seems to be forced to one, plain kind of scaling called linear (i.e. basic).

The fact that we can do scaling with CompositeTags, it is probabaly comes as bonus, not as the main feature of it, right ?

Ah, ok. CompositeTags() can do (bi)linear and "nearest" filtering. I don't think cubic, sinc, & lanczos could be hardware accelerated at the time.

Quote:
But then, it is the same for any OS, right ?

Yes.

Hans


Edited by Hans on 2023/7/31 11:28:23
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: compositing engine technical talks
Home away from home
Home away from home


@geennaam

Quote:
I think that the name "compositing engine" is just emphasis on the fact that it's a specific piece of software that can be enabled/disabled to provide hardware accelerated effects to workbench.

There is a lot going on behind the scenes. The "compositing engine" needs to detect when a partially transparent window changes (either in size, position, or contents), and then redraw that part of the screen. It tries to do this during the vblank interval so you don't get ugly partial redraw artifacts.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: compositing engine technical talks
Home away from home
Home away from home


@kas1e

The compositing API is basically one function: CompositeTags()/CompositeTagList(). It wasn't created for Radeon cards specifically.

The composited window effects (e.g., the transparency and drop-shadows) are done using CompositeTags() on AmigaOS 4. I have no idea how it's implemented on MorphOS. AFAIK, Windows uses Direct-X to do the hardware-accelerated compositing effects.

I assume that CompositeTags() was created with implementing a composited window manager in mind. What's great, is that it's easily accessible for any developer to use. It's also designed to do a lot more than basic window transparency and shadow effects.

Quote:
Also, as far as i see in the docs, the only one method is used for the scaling : linear filtering, other ones didn't implement. That also correct ?

BitMapScale() is a very old (pre-OS4) scaling function that may not even be hardware accelerated. Use CompositeTags() instead.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Pegasos2 with RadeonHD/RX via bridge
Home away from home
Home away from home


@LiveForIt

Quote:
Sound like does not do it recurseivly, I think it only does it as if it was a simple list.

Yes, it certainly sounds like it. So, a possible workaround would be to flatten the node structure. Ugly, but it's either that, or someone has to fix the OS' openfirmware PCI tree parsing code...

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@balaton
[quote]Using the original sm502 driver from 4.1 Update 3 as is recommended in the setup guides would also work until a newer driver is avaialeble so why don't you use that?[/quot]
I must have skipped over that bit. I also have access to m3x's beta...

Just need time to try it out.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top


Re: Laptop recommendations
Home away from home
Home away from home


@smarkusg

Quote:
hmm... you have a black screen all the time before the graphics card initialization ?
maybe you didn't replace siliconmiotion502.chip with the one from before UP2 update ?
It remembers that the system loading time then increases terribly.

Yes, there's a very long delay with a black screen. I'll try m3x's new beta...

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top



TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 127 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project