AvaloniaInside / AvaloniaInside.MonoGame

Integration of MonoGame for Avalonia
MIT License
47 stars 9 forks source link

Lower fps #7

Open shshshdy opened 10 months ago

shshshdy commented 10 months ago

Capture the executed frame into the bitmap

Multiple 2D texture rendering with flashing screen: mainly alternating black background and texture display

damian-666 commented 10 months ago

are you doing with is tabbed dialogs? is the best way to use the writable bitmap sti;;? is there a wasy to share a surface? there's in a new NKI branch of monogame to try... i don't know what to do with this.,. i don't mind copying as song as im in sync wih the system vSync.. i will render then. i do want blazor support.. android and the desktops... im not sure about mobile if i wil go native on all this as i don't need the avalonia UI in monogame..

i have very simple 3d graphics that used opentk form bepuphysics, is not been updated to the new avalonia, gettin mixed messages..bepuphysics used to to monograme..

OmidID commented 10 months ago

Hello, I did a search on how to share the surface, Somehow, No solution. I can see also you had a workaround to do it and unfortunately, this is available only for DirectX. If we can find a solution to share the surface it would be great. I raised the question to MonoGame and still no answer for it.

damian-666 commented 10 months ago

the way to do it is stuck in avalonia issue for openGL righ tnow theres a kekekeke bug open.. i would wait on it or work around it.,. still i dont get 7ps.. must be a lock issue..set your timerselecotion. id prss berak all a few times and see where it is waiting.. dll import timeBeginPeriod function (timeapi.h) copy is not that bad... the dirertc X way wanst merged, abandoned,.. ad i guess the opengl way would be a bit like it.. the marcstan way was tooo much.. the craftwrokway wasnt merged, hes over it.. took weeks.

On Sun, Nov 12, 2023 at 7:34 AM Omid Mafakher @.***> wrote:

Hello, I did a search on how to share the surface, Somehow, No solution. I can see also you had a workaround to do it and unfortunately, this is available only for DirectX. If we can find a solution to share the surface it would be great. I raised the question to MonoGame and still no answer for it.

— Reply to this email directly, view it on GitHub https://github.com/AvaloniaInside/AvaloniaInside.MonoGame/issues/7#issuecomment-1807130588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD74XGLPYZG25JKPMOIGN2TYEDF5NAVCNFSM6AAAAAA62MQ2RWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGEZTANJYHA . You are receiving this because you commented.Message ID: @.***>

damian-666 commented 10 months ago

there are many semaphores and Metal Vulcan and Opengl and DX now.. its hard.. for MG, its best to use the KNI branch maybe.. for open gl.. then use the writeablebitmap with .det 8.. its SIMD copy and should not require locks.. putting looks requires timeBeginperiod to 4 ms i think.. in windows .. and on high hes mac is reported slow so you have to use Metal.. it might have been done in Strtide and you could... i sue it with docking via https://twitter.com/wieslawsoltes/status/1621277580316884998?s=20 yo cna sponsor him because he and ekeekee are the gurus on theis .. tis really hard.and .. KNI maybe fxed the OpenGl antialitias bug and its was pretty bad,.. so depends what you want to do... and IDE.. a brazon host, put some ui aroudn it.. gg native with silk thats an option... sort of...they cut out xamarin and thas smallest by 30%... ask the chatbox to translate your shaders.. .. maybe it will but passing in the params is the weirdness..

On Mon, Nov 13, 2023 at 12:18 AM Damian @.***> wrote:

the way to do it is stuck in avalonia issue for openGL righ tnow theres a kekekeke bug open.. i would wait on it or work around it.,. still i dont get 7ps.. must be a lock issue..set your timerselecotion. id prss berak all a few times and see where it is waiting.. dll import timeBeginPeriod function (timeapi.h) copy is not that bad... the dirertc X way wanst merged, abandoned,.. ad i guess the opengl way would be a bit like it.. the marcstan way was tooo much.. the craftwrokway wasnt merged, hes over it.. took weeks.

On Sun, Nov 12, 2023 at 7:34 AM Omid Mafakher @.***> wrote:

Hello, I did a search on how to share the surface, Somehow, No solution. I can see also you had a workaround to do it and unfortunately, this is available only for DirectX. If we can find a solution to share the surface it would be great. I raised the question to MonoGame and still no answer for it.

— Reply to this email directly, view it on GitHub https://github.com/AvaloniaInside/AvaloniaInside.MonoGame/issues/7#issuecomment-1807130588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD74XGLPYZG25JKPMOIGN2TYEDF5NAVCNFSM6AAAAAA62MQ2RWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGEZTANJYHA . You are receiving this because you commented.Message ID: @.***>