Author Topic: slow under linux  (Read 3748 times)

fida

  • Traveller
  • *
  • Posts: 26
    • View Profile
(No subject)
« Reply #30 on: February 28, 2005, 05:45:13 pm »
and where is the heap.h?
« Last Edit: February 28, 2005, 05:45:51 pm by fida »

fida

  • Traveller
  • *
  • Posts: 26
    • View Profile
(No subject)
« Reply #31 on: February 28, 2005, 06:35:41 pm »
i can give you more info abou errors:
[root@localhost CS]# jam plugins
...patience...
...patience...
...patience...
...found 3170 target(s)...
...updating 4 target(s)...
C++ ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.o
In file included from ./include/csgfx.h:39,
                 from ./include/crystalspace.h:22,
                 from ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.cpp:1169:
./include/csgfx/vertexlight.h: In constructor `csPointLightProc::csPointLightProc(iLight*, iMovable*, float)\':
./include/csgfx/vertexlight.h:121: error: invalid use of undefined type `struct iMovable\'
./include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
./include/csgfx/vertexlight.h: In constructor `csDirectionalLightProc::csDirectionalLightProc(iLight*, iMovable*, float)\':
./include/csgfx/vertexlight.h:162: error: invalid use of undefined type `struct iMovable\'
./include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
./include/csgfx/vertexlight.h: In constructor `csSpotLightProc::csSpotLightProc(iLight*, iMovable*, float)\':
./include/csgfx/vertexlight.h:208: error: invalid use of undefined type `struct iMovable\'
./include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
./include/csgfx/vertexlight.h: In member function `csColor csSpotLightProc::ProcessVertex(const csVector3&, const csVector3&) const\':
./include/csgfx/vertexlight.h:232: error: `distance\' undeclared (first use this function)
./include/csgfx/vertexlight.h:232: error: (Each undeclared identifier is reported only once for each function it appears in.)

    g++ -c -o ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.o -I. -I./include -I./include -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -g3 -DCS_DEBUG -fPIC -I/usr/include/python2.3 -DSWIG_GLOBAL -Wno-unused -Wno-uninitialized  ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.cpp

...failed C++ ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.o ...
...skipped libcspycommon.a for lack of libcspycommon.a(cs_pyth.o)...
...skipped cspython.so for lack of libcspycommon.a...
...skipped _cspace.so for lack of libcspycommon.a...
...failed updating 1 target(s)...
...skipped 3 target(s)...


and
it is cel jaming:

C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.o
In file included from /home/internet/work/vyvoj/CS/include/csgfx.h:39,
                 from /home/internet/work/vyvoj/CS/include/crystalspace.h:22,
                 from ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:1202:
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In constructor `csPointLightProc::csPointLightProc(iLight*, iMovable*, float)\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:121: error: invalid use of undefined type `struct iMovable\'
/home/internet/work/vyvoj/CS/include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In constructor `csDirectionalLightProc::csDirectionalLightProc(iLight*, iMovable*, float)\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:162: error: invalid use of undefined type `struct iMovable\'
/home/internet/work/vyvoj/CS/include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In constructor `csSpotLightProc::csSpotLightProc(iLight*, iMovable*, float)\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:208: error: invalid use of undefined type `struct iMovable\'
/home/internet/work/vyvoj/CS/include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In member function `csColor csSpotLightProc::ProcessVertex(const csVector3&, const csVector3&) const\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:232: error: `distance\' undeclared (first use this function)
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:232: error: (Each undeclared identifier is reported only once for each function it appears in.)
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp: In function `PyObject* _wrap_iClipper2D_Clip__SWIG_0(PyObject*, PyObject*)\':
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:40454: warning: unused variable \'ptr3\'
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp: In function `PyObject* _wrap_iClipper2D_Clip__SWIG_1(PyObject*, PyObject*)\':
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:40520: warning: unused variable \'ptr3\'
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp: In function `PyObject* _wrap_iClipper2D_Clip__SWIG_2(PyObject*, PyObject*)\':
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:40591: warning: unused variable \'ptr3\'

    g++ -c -o ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.o -I. -I./include -I. -Wall -g3 -DCS_DEBUG -fPIC -I/usr/include/python2.3 -I/home/internet/work/vyvoj/CS/include -DSWIG_GLOBAL  ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp

...failed C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.o ...
C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/blpython.o
In file included from /usr/include/python2.3/Python.h:8,
                 from ./plugins/behaviourlayer/python/blpython.h:29,
                 from plugins/behaviourlayer/python/blpython.cpp:21:
/usr/include/python2.3/pyconfig.h:850:1: warning: \"_POSIX_C_SOURCE\" redefined
In file included from /usr/include/stdint.h:26,
                 from /home/internet/work/vyvoj/CS/include/cstypes.h:37,
                 from /home/internet/work/vyvoj/CS/include/csdef.h:27,
                 from /home/internet/work/vyvoj/CS/include/cssysdef.h:24,
                 from plugins/behaviourlayer/python/blpython.cpp:19:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/pytocel.o
In file included from /usr/include/python2.3/Python.h:8,
                 from ./plugins/behaviourlayer/python/blpython.h:29,
                 from plugins/behaviourlayer/python/pytocel.cpp:21:
/usr/include/python2.3/pyconfig.h:850:1: warning: \"_POSIX_C_SOURCE\" redefined
In file included from /usr/include/stdint.h:26,
                 from /home/internet/work/vyvoj/CS/include/cstypes.h:37,
                 from /home/internet/work/vyvoj/CS/include/csdef.h:27,
                 from /home/internet/work/vyvoj/CS/include/cssysdef.h:24,
                 from plugins/behaviourlayer/python/pytocel.cpp:19:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
...skipped blpython.so for lack of blcel.o...
 and some other reports from jaming planeshift:
C++ ./out/linuxx86/debug/src/updater/md5.o
C++ ./out/linuxx86/debug/src/updater/registrycreator.o
...skipped updater for lack of libpsutil.a...
C++ ./out/linuxx86/debug/src/paws_generic/eedit.o
C++ ./out/linuxx86/debug/src/paws_generic/pawsgeneric.o
...skipped paws_generic for lack of libpsutil.a...
C++ ./out/linuxx86/debug/src/eedit/pawseedit.o


i don\'t know what to do

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #32 on: February 28, 2005, 06:45:40 pm »
Quote
Originally posted by fida
C++ ./out/linuxx86/debug/src/server/adminmanager.o
In file included from ./src/common/util/eventmanager.h:26,
                 from src/server/spawnmanager.h:35,
                 from src/server/adminmanager.cpp:35:
./src/common/util/heap.h: In member function `void Heap::Insert(T*)\':

Just read what gpp spits out ;)

About the other errors: Have you tried to checkout a newer version of CS? Oh and if you got PS from cvs recently don\'t bother to compile it, since it has 2 big bugs. Better wait until those are fixed.

Edit: Oh and don\'t worry about the python stuff. It isn\'t used in PS anyway.
« Last Edit: February 28, 2005, 06:46:42 pm by Karosh_Steinkatz »


Back to Planeshift again \\o/

fida

  • Traveller
  • *
  • Posts: 26
    • View Profile
(No subject)
« Reply #33 on: February 28, 2005, 07:04:42 pm »
and how will i upgrade ps with cvs? And when will be next version? and the bugs are so deadly, can you explain what do you mean exactly( i repaired heap.h and jaming planeshift works fine)? thanks
« Last Edit: February 28, 2005, 07:08:46 pm by fida »

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #34 on: February 28, 2005, 07:15:33 pm »
1. You get the message \"We have been dropped by the server (invalid error message)\" and the client quits.
2. The values in the status window are all 0.


Back to Planeshift again \\o/

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #35 on: March 03, 2005, 03:12:29 pm »
Building Planeshift from CVS increases performance because it is
optimized to your system. Well  CVS users always get all fixes (and screw
ups) first, but I\'ve compiled source from yesterday and it works fine for me.

Regards.
« Last Edit: March 03, 2005, 03:14:33 pm by Platyna »
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

Tharizdun

  • Hydlaa Resident
  • *
  • Posts: 168
    • View Profile
(No subject)
« Reply #36 on: March 04, 2005, 03:36:20 am »
The \"We have been dropped by the server (invalid error message)\" has been fixed in CVS since the 1st of march:

*** 2005-03-01 by Andrew Craig
- NPC\'s don\'t send disconnect messages to clients. Was causing
  clients to be dropped.

I have not seen any repeat of the bug since I started using the code with the above change in it.

Also, the latest update claims to correct the lighting problem with the pitch-black nights in outdoor areas. I havent tried this fix yet, might do a cvs update and recompile later today though.

fida

  • Traveller
  • *
  • Posts: 26
    • View Profile
(No subject)
« Reply #37 on: March 04, 2005, 02:35:25 pm »
how can I update planeshist with cvs? thanks

Tharizdun

  • Hydlaa Resident
  • *
  • Posts: 168
    • View Profile
(No subject)
« Reply #38 on: March 05, 2005, 04:16:54 am »
Easiest way is to go to the location that the cvs source was checked-out to, and run \'cvs -z9 update -dP\'. Its up to you whether you update the other parts ( cal3d, cs and cel ). If they are working stable and produce no errors when compiling perhaps its best to leave them be.

Then configure, recompile and update as per the build guide

./autogen.sh
./configure
jam -a
./updater -auto

The CVS update will pull down .xml files as well as source code. It will attempt to merge differences between what the current version on the server has, and your local copy has.. it sometimes fails to do this properly. Its not a problem though, as when you run the updater it will retrieve the newest .xml files from the planeshift server anyway.

fida

  • Traveller
  • *
  • Posts: 26
    • View Profile
(No subject)
« Reply #39 on: March 07, 2005, 08:44:55 pm »
hi finaly i tried to update and this is the result:
[internet@localhost planeshift]$ ./updater --auto
Critical files () not found (Server only)
NOTIFY: psUpdaterEngine initialized.
Downloading registry...
0%....25%....50%....75%....100%
Loaded registry
Your updater version is newer than the server\'s..
SCF WARNING: 1 unreleased instances of class crystalspace.kernel.vfs!

I did exactly, what is written on laanx.fragnetics.com and when I tried to run the game, it looked like Molecular blue version.
Any ideas? thanks Fida

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #40 on: March 07, 2005, 09:08:12 pm »
The CVS doesn\'t include the CB art and the updater in the current CVS is newer then the one on the server *sigh*

If you want to get the updater working, set the PS_NETVERSION in src/common/net/messages.h to 1023.


Back to Planeshift again \\o/

fida

  • Traveller
  • *
  • Posts: 26
    • View Profile
(No subject)
« Reply #41 on: March 08, 2005, 05:55:55 pm »
sorry, i cannot find in message.h PS_NETVERSION and 1024, i just find 0x0030, but nothin else and I think it should be in #define

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #42 on: March 08, 2005, 09:53:17 pm »
GAH!
Note to self: Don\'t write in a rush when you are at work.

What I meant to write was the UPDATER_VERSION in src/updater/updaterglobals.h, which you have to set to 1023 to get the updater to work with the current one on the server. But don\'t forget to increase it again after the server\'s one was updated ;)


Back to Planeshift again \\o/

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #43 on: March 09, 2005, 12:11:08 am »
Going back to the original subject my system also slows down after 30-40mins from a usual 120+ fps down as low as 0.5 if I log out and in again its back to normal. glx gears give 2000+ in a window 250+ full screen.

amd 2500 barton
asus a7v8x
western 160gb
256 mb ram
audacity2
suse 9.1
nvidia 6629
1mb adsl
any suggestion gratefully received

John
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #44 on: March 09, 2005, 12:17:51 am »
You should get more ram ;)
256MB is barely enough to play it, but the usual memory usuage of PS is ~500MB, so get at least another 256MB.


Back to Planeshift again \\o/