cocoa.m using openGL
Hello to all,
esp. Pierre d'Herbemont,
I have changed cocoa.m (0.7.0) to use openGL with very fast texturing. I removed the use of QuickDraw. The DisplayState data is now DMA'd to the graphics card instead of copied by the CPU. This uses apple's texture range extensions. The change means that the transfer of "display memory" incurs no CPU overhead. I also put in a bit more mouse stuff, and made some other fixes. I can't work out how to get the Window to get focus once it loses it, which is really a pain.
I Shark'd it to make sure there wasn't any overhead from the texturing. I tested with Knoppix and FreeDOS.
I am not sure if this is of interest to people, I just had a lazy weekend. I would like to give the code to the qemu project, but don't really know how to.
thanks,
peter.
Peter,
You can use the "diff" command (I think it's available on OS X) to create patches, and then you can post those patches here.
Please add comments wherever possible to indicate what you done (something small and simple).
BTW: have you tried to perform any benchmarking to see if there's any speed gain from your work compared to the standard QEMU?
Thanks,
Hetz
Quoted 30 lines · Peter Stewart
Hello to all,
esp. Pierre d'Herbemont,
I have changed cocoa.m (0.7.0) to use openGL with very fast texturing. I removed the use of QuickDraw. The DisplayState data is now DMA'd to the graphics card instead of copied by the CPU. This uses apple's texture range extensions. The change means that the transfer of "display memory" incurs no CPU overhead. I also put in a bit more mouse stuff, and made some other fixes. I can't work out how to get the Window to get focus once it loses it, which is really a pain.
I Shark'd it to make sure there wasn't any overhead from the texturing. I tested with Knoppix and FreeDOS.
I am not sure if this is of interest to people, I just had a lazy weekend. I would like to give the code to the qemu project, but don't really know how to.
thanks,
peter._______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 16 lines · Peter Stewart
Hello to all,
esp. Pierre d'Herbemont,
I have changed cocoa.m (0.7.0) to use openGL with very fast texturing. I removed the use of QuickDraw. The DisplayState data is now DMA'd to the graphics card instead of copied by the CPU. This uses apple's texture range extensions. The change means that the transfer of "display memory" incurs no CPU overhead. I also put in a bit more mouse stuff, and made some other fixes. I can't work out how to get the Window to get focus once it loses it, which is really a pain.
I Shark'd it to make sure there wasn't any overhead from the texturing. I tested with Knoppix and FreeDOS.
I am not sure if this is of interest to people, I just had a lazy weekend. I would like to give the code to the qemu project, but don't really know how to.
thanks,
peter.
Quoted 4 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Great News! Especially, if somebody writes a openGL driver/wrapper for the GuestOS.
I'm working on cocoa.m for some time now, especially UI Things. But I did not get around submitting the stuff yet. You find my diff on www.kberg.ch/cocoaqemu. It consists of a lot of changes (including mouse and keyboard support :) ) Last update: this weekend.
Mike
Hello Peter and Pierre
I have woven the patch into my patch and run some basic but in other times often used benchmarks with doom:
i unpacked freedos and installed doom from
http://www.kberg.ch/cocoaqemu/files/freedosdoom.img.zip
then i started doom with
doom -timedemo demo3
(reboot between the runs)
realticks with QD
2542
2544
2543
2543
2545
Average: 2543.4 => 29.3662 fps
realticks with openGL
2476
2466
2447
2451
2454
Average: 2458.8 => 30.3865 fps
To get fps from these Number you have to 35*2134/realticks
=> openGL is 3.5% faster on my system
plus
- it solves some issues i had with hiding/showing the toolbar (damaging the qd_view)
- it could accelerate the generation of livethumbnails i am using
Testbuild and diff are on
http://www.kberg.ch/cocoaqemu
At this point I'm asking, whether my patch should/can be included into the CVS, what changes I should make, or how to continue...
Mike
Hi Peter,
That is really great!
To send your work:
1) download the cvs repository, see:
http://savannah.nongnu.org/cvs/?group=qemu
2) send your diff:
# cd /path/to/qemu # cvs diff -u cocoa.m > cocoapatch.diff.txt
If you think your patch is clean enough, send it to Fabrice (and the list) so that it can be merged in qemu's repository.
It seems that cocoa.m is under heavy work, which is good :)
Pierre.
Quoted 21 lines · Peter Stewart
Hello to all,
esp. Pierre d'Herbemont,
I have changed cocoa.m (0.7.0) to use openGL with very fast texturing. I removed the use of QuickDraw. The DisplayState data is now DMA'd to the graphics card instead of copied by the CPU. This uses apple's texture range extensions. The change means that the transfer of "display memory" incurs no CPU overhead. I also put in a bit more mouse stuff, and made some other fixes. I can't work out how to get the Window to get focus once it loses it, which is really a pain.
I Shark'd it to make sure there wasn't any overhead from the texturing. I tested with Knoppix and FreeDOS.
I am not sure if this is of interest to people, I just had a lazy weekend. I would like to give the code to the qemu project, but don't really know how to.
thanks,
peter._______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Mike!
Quoted 2 lines · Mike Kronenberg
[..]
=> openGL is 3.5% faster on my system
Impressive ;)
Quoted 9 lines
plus
- it solves some issues i had with hiding/showing the toolbar (damaging theqd_view)
- it could accelerate the generation of livethumbnails i am usingTestbuild and diff are on
http://www.kberg.ch/cocoaqemuAt this point I'm asking, whether my patch should/can be included into the CVS, what changes I should make, or how to continue...
Send your patch to Fabrice (and the list)! I can't really test it right now, but after a really quick look, it looks clean enough for me. And I don't think you should wait any longer. I think it is better to work directly on the CVS, with a patch per bug/features scheme.
bye,
Pierre.
Quoted 2 lines · Mike Kronenberg
Testbuild and diff are on
http://www.kberg.ch/cocoaqemu
It doesn't work on my iMac DV G3 400. I know that its ATI Rage 128 is very limited, but I think that we'll had to keep both version...
The PNG preview works but not the main screen.
I'll be able to debug a bit more in the weekend.
Pierre.
Quoted 8 lines · Pierre d'Herbemont
Quoted 2 lines · Mike Kronenberg
Testbuild and diff are on
http://www.kberg.ch/cocoaqemuIt doesn't work on my iMac DV G3 400. I know that its ATI Rage 128 is very limited, but I think that we'll had to keep both version...
Did You get an error-message so we could include a autoswitch?
Quoted 8 lines
The PNG preview works but not the main screen.
I'll be able to debug a bit more in the weekend.
Pierre.
Quoted 8 lines
------------------------------------------------------------------------
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Mike
Quoted 4 lines · Mike Kronenberg
Quoted 1 line · Pierre d'Herbemont
It doesn't work on my iMac DV G3 400. I know that its ATI Rage 128 is very limited, but I think that we'll had to keep both version...
Did You get an error-message so we could include a autoswitch?
Nop... The main window's buffer seems to point to a wrong memory address. I have seen, this bug before when playing with OpenGL and texture on this Macine. Screenshot here:
http://stegefin.free.fr/q-ogl.png
Pierre.