Board.KolibriOS.org

Official KolibriOS board
It is currently Thu May 23, 2019 12:27 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 202 posts ]  Go to page Previous 110 11 12 13 14 Next
Author Message
PostPosted: Thu May 02, 2013 12:18 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
yogev_ezra wrote:
hidnplayr wrote:
Mario_r4
PIO vs DMA depends on the card eg rtl8029 always uses PIO while rtl8139 already uses DMA.
There is no reason to wait for new network stack, this game should work fine. :)
Umm but then what was the reason you started to write new stack? Was it only to move the network card drivers outside of the kernel, and to support more than one network card at once? I thought it was also to improve speed :-(


New stack uses interrupts rather then polling the cards, new stack tries to use a 'zero copying' approach while old stack copies packets from one place to another, multiple times, this increases CPU usage and decreases performance.
Old stack uses its own API while new stack tries to follow the 'industry standard' BSD sockets API.
Old stack works only with one network card at a time, and you cannot choose which one without recompiling the kernel. New stack can handle multiple cards at once and let users select which one.

I thought this was obvious :D

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Thu May 02, 2013 12:21 pm 
Offline
Public Relations
User avatar

Joined: Mon Jun 07, 2010 12:01 pm
Posts: 1879
hidnplayr wrote:
New stack uses interrupts rather then polling the cards, new stack tries to use a 'zero copying' approach while old stack copies packets from one place to another, multiple times, this increases CPU usage and decreases performance.
This is what I initially thought. So actually Mario was right, and new stack has better performance, although it's not related to using DMA vs PIO mode.


Top
   
PostPosted: Thu May 02, 2013 12:22 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
yogev_ezra wrote:
hidnplayr wrote:
New stack uses interrupts rather then polling the cards, new stack tries to use a 'zero copying' approach while old stack copies packets from one place to another, multiple times, this increases CPU usage and decreases performance.
This is what I initially thought. So actually Mario was right, and new stack has better performance, although it's not related to using DMA vs PIO mode.


Correct.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Thu May 02, 2013 9:26 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
HedgeWars написаны на Паскале, порт FreePascal есть. Правда, придется всё это линковать с физическими библиотеками и SDL, которые, в свою очередь, написаны на Си. Я думаю, что это доставит определенные проблемы, но ничего невозможного нет. Я оцениваю время на "запускающуюся" версию порта в 3-4 недели работы неоптыного любителя, или 1-2 недели опытного.


Top
   
PostPosted: Thu May 02, 2013 11:00 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
hidnplayr
Spoiler: Show
We expected more!
Attachment:
cereal-guy-hey.png
cereal-guy-hey.png [ 12.29 KiB | Viewed 2786 times ]

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Sat Sep 21, 2013 9:35 pm 
Offline
Mentor
User avatar

Joined: Tue Jan 15, 2008 11:27 am
Posts: 752
Добавил в Reversi вывод счёта (r3924).


Top
   
PostPosted: Fri Nov 22, 2013 8:38 pm 
Offline
User avatar

Joined: Thu Mar 01, 2007 7:57 pm
Posts: 835
Собрал "Ну погоди!" из исходников. Вверху должен быть счёт, но его нет. Все изображения вроде бы присутствуют...


Attachments:
7.png
7.png [ 122.38 KiB | Viewed 2620 times ]

_________________
Всех выше те, кто доброе творят,
И за дела добра не ждут наград,
Всем жертвуют для страждущих людей,
Не думая о выгоде своей.
Top
   
PostPosted: Sat Nov 23, 2013 11:51 pm 
Offline
User avatar

Joined: Mon Oct 27, 2008 10:10 pm
Posts: 811
нужно еще добавить файл font8x9.bmp который я брал из папки kfar
http://websvn.kolibrios.org/filedetails ... ont8x9.bmp


Top
   
PostPosted: Sun May 04, 2014 6:30 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5047
Не работает управление в игре Red Square.

_________________
Через тернии к звездам


Top
   
PostPosted: Sun May 04, 2014 9:55 pm 
Offline
Mentor
User avatar

Joined: Tue Jan 15, 2008 11:27 am
Posts: 752
Leency wrote:
Не работает управление в игре Red Square.

Починено в r4917


Top
   
PostPosted: Tue May 06, 2014 11:13 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5047
Спасибо!

_________________
Через тернии к звездам


Top
   
PostPosted: Fri Sep 05, 2014 5:59 pm 
Offline
Kernel Developer
User avatar

Joined: Thu Sep 03, 2009 1:52 pm
Posts: 1619
IgorA wrote:
Новая версия программы life3, отличия от предыдущей версии:

Code:
C:\kolibri\localcopy\programs\games\life3\trunk>fasm life3.asm
flat assembler  version 1.71.21  (1048576 kilobytes memory)
life3.asm [15]:
include '../../nu_pogodi/trunk/mem.inc'
error: file not found.

_________________
Сделаем мир лучше!


Top
   
PostPosted: Fri Sep 05, 2014 6:29 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
Seems to fix it:

Code:
@@ -1,3 +1,5 @@
+format binary as ""
+
 use32
    org 0x0
    db 'MENUET01' ;идентиф. исполняемого файла всегда 8 байт
@@ -12,8 +14,7 @@ use32
 include '../../../macros.inc'
 include '../../../proc32.inc'
 include '../../../develop/libraries/box_lib/load_lib.mac'
-include '../../nu_pogodi/trunk/mem.inc'
-include '../../nu_pogodi/trunk/dll.inc'
+include '../../../dll.inc'

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Fri Sep 05, 2014 8:10 pm 
Offline
User avatar

Joined: Mon Oct 27, 2008 10:10 pm
Posts: 811
CleverMouse и hidnplayr спасибо, исправил в 5092


Top
   
PostPosted: Fri Sep 12, 2014 9:31 pm 
Offline
Kernel Developer
User avatar

Joined: Thu Sep 03, 2009 1:52 pm
Posts: 1619
Я настроила автосборку reversi из исходников в r5111.

_________________
Сделаем мир лучше!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 202 posts ]  Go to page Previous 110 11 12 13 14 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited