Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
91 user(s) are online (58 user(s) are browsing Forums)

Members: 1
Guests: 90

geennaam, more...

Headlines

Forum Index


Board index » All Posts (Capehill)




Re: Interested in learning OpenGL ES 2 or Warp3D Nova?
Just can't stay away
Just can't stay away


@Hans

I can try to add OpenGL ES 2 support for SDL2 but I can't test it myself at the moment. If someone else can, then good..

Go to top


Re: Interested in learning OpenGL ES 2 or Warp3D Nova?
Just can't stay away
Just can't stay away


https://github.com/residualvm/residual ... facesdl-graphics.cpp#L168

This is the code? Looks like it is using a dynamic screen-sized texture, uploaded to VRAM each frame.

With StarFighter, on Sam440 with 800*600 resolution, similar rendering is fastest with compositing, then software and slowest with MiniGL.

As I don't know nothing about Nova, I let Hans to speculate how it will do here.

Go to top


Re: Interested in learning OpenGL ES 2 or Warp3D Nova?
Just can't stay away
Just can't stay away


@Raziel

It is probably hard to answer without knowing what application you are porting.

Go to top


Re: NetSurf very unstable?
Just can't stay away
Just can't stay away


http://git.netsurf-browser.org/netsur ... ends/amiga/schedule.c#n95

Here, do you want to actually use nscb->tv, instead of tv? Result of AddTime() is placed in the first TimeVal.

EDIT: nope, looks like UNIT_VBLANK is used.

Go to top


Re: NetSurf very unstable?
Just can't stay away
Just can't stay away


@Chris

Alright. Found something else, probably not the rootcause but looks like missing TAG_DONE here?

http://git.netsurf-browser.org/netsur ... ontends/amiga/gui.c#n5553

Go to top


Re: NetSurf very unstable?
Just can't stay away
Just can't stay away


@Chris

Only had a brief look, but if there is a crash during exit, is possible pending IO checked and aborted? I notice SendIO() being used.

Go to top


Re: Is it possible to rename a shell process?
Just can't stay away
Just can't stay away


@broadblues

Top command on Linux lists itself too.

Joerg wrote a "top" command ~10 years ago. Today I found it from my harddrive. It lists also task switches per second and apparently the time spent inside Forbid(). This version also lists itself and support dynamically started new tasks without issues.

Hieronymus unfortunately crashes on my Sam440.

Go to top


Re: Is it possible to rename a shell process?
Just can't stay away
Just can't stay away


@broadblues

It's supposed to be a top clone. Thus, it is obviously very useful to see at least the "top" task's name listed in the view, when there are more than one "Shell Process".

It's still one process that wants to have its unique name (see above), and the same process that wants to list the names of all tasks.

I will have to investigate exclusive startup. Due to how this clone works at the moment, it would be a disaster to have more than one instance running. But maybe there is a better way to sample CPU usage than poking tc_Launch/tc_Switch? I have to investigate how Hieronymus profiler works.

Anyway, the task name issue is solved. In internal data structures any invented name can be used when the current Task pointer matches the one being checked.

Also poking the ln_Name field works but it is a hack.

@all

Thanks for the answers.

Go to top


Re: Is it possible to rename a shell process?
Just can't stay away
Just can't stay away


After some googling, I found a suggestion to just store the old ln_Name and restore it before exit. Seems to work but probably some kittens died in the process.

Go to top


Re: Is it possible to rename a shell process?
Just can't stay away
Just can't stay away


I was a little bit tired yesterday evening so I try to clarify. My expectation was that if I ran a program called "hello" from shell, it would have appeared with the name "hello" when I walk through the Exec list of tasks (ln_Name). But it didn't.

I tried SetCliProgramName() but as far as I can see, it doesn't affect ln_Name at least. It is always "Shell Process".

Technically there is just one task (or process) with no child tasks (or processes).

Go to top


Is it possible to rename a shell process?
Just can't stay away
Just can't stay away


If a program is started from shell, is it possible to give it a custom name at runtime using some library API?

Go to top


Re: os4 cpu metter ?
Just can't stay away
Just can't stay away


@Severin

Regarding Scout, it should be possible to use tc_switch and tc_launch vectors of each task, to calculate their execution time.

Go to top


Re: os4 cpu metter ?
Just can't stay away
Just can't stay away


@Severin

Good suggestion. Maybe in 0.7?

@ChrisH

In general it would be nice if Exec provided API to query CPU load. Then all these meters would be compatible and much simpler technically.

Exec could also keep book on each task's CPU time while scheduling them.

Go to top


Re: os4 cpu metter ?
Just can't stay away
Just can't stay away


CPU Watcher has now a GitHub project. Version 0.6 is in the OS4Depot upload queue.

Code was cleaned, some bugs were fixed and it can now use real transparency. Tested on Sam440 only so far so it would be good to hear other results :)

https://github.com/capehill/cpuwatcher




Go to top


Re: Subversion certificate error
Just can't stay away
Just can't stay away


@alfkil

I realize this may not be the answer you are looking for, but you could also try sgit and GitHub/BitBucket if this is your own project.

Go to top


Re: SDL2
Just can't stay away
Just can't stay away


@MickJT

Yes, documentation is here https://wiki.libsdl.org/SDL_GetKeyboardState

Checkkeys also reports escape pressed/released. But what it should report for text?

Regarding bad_alloc, it's also game issue that it doesn't try-catch the error. However, we have to debug why allocation failed.

Go to top


Re: SDL2
Just can't stay away
Just can't stay away


@MickJT

Esc might be a bug. I see game uses:

https://sourceforge.net/p/tuxfootball/ ... e/src/gameengine.cpp#l115

SDL_GetKeyboardState returns array that should be indexed with SDL_ScanCodes. So m_quitKey should be SDL_SCANCODE_ESCAPE.

bad_alloc...can you find out the line?

Go to top


Re: SDL2
Just can't stay away
Just can't stay away



Go to top


Re: SDL2
Just can't stay away
Just can't stay away


@Cap

Heh, just finished Dark Souls 3 like a week ago. Phew.

@tlosm:

Half-life engine looks very interesting. What is the status of the project?

@MickJT:

Thanks!



Go to top


Re: SDL2
Just can't stay away
Just can't stay away


https://sourceforge.net/projects/tuxfootball/ uses SDL2. We already have older port.

Go to top



TopTop
« 1 ... 72 73 74 (75) 76 77 78 ... 83 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project