Page 1 of 1
[b29] starting te4 maxes cpu, does nothing else
Posted: Thu Jul 14, 2011 3:51 am
by Chryana
Hello and first, thanks for making such a great game. I have been playing beta 28 quite a bit recently. I downloaded today beta 29, but it seems it will simply not work on my computer. The process t-engine.exe takes all the CPU cycles it can get when it is started, and memory usage is stays around 20 MiB. After a few minutes, memory usage goes down to 2 MiB, but there is no improvement as far as CPU usage is concerned. I have tried letting it run for about 10 minutes before killing the process with the task manager. I am running te4 on Windows XP SP 3 and my system specs are as follows:
Athlon XP 2000+
2 GiB DDR
GeForce 7800 GS
As you can see, my system is pathetically weak by today's standards. I have tried upgrading my graphics card driver to the latest version, and it didn't help.

Do you have any suggestions as to what I could try next?
Edit: I forgot to mention that the main windows pops up but I can see nothing on it.
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Thu Jul 14, 2011 5:40 am
by ants
I may have the same problem, but I'm running Ubuntu 11.04 on a pretty new computer (Intel i7-2630QM, nVidia GeForce GTX 460M, 6GB RAM). I get 100% processor use on one thread and a black windowed screen. I was able to see a screen after resizing it maybe five times, but the processor use stays up there even if I turn off all video options and severely reduce the resolution, framerate, and particle density.
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Thu Jul 14, 2011 10:35 am
by Chryana
Resizing does not help in my case. Minimizing t-engine to the taskbar instantly brings the memory usage to 2 MiB. I also tried deleting the folder "C:\Documents and Settings\%username%\T-Engine", which did not help. The folder is not rebuilt when I start the program.
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Thu Jul 14, 2011 8:34 pm
by Chryana
This should be useful... This is the content of the file te4_log.txt
[CPU] Detected 1 CPUs
OpenAL device available: DirectSound Default (default DirectSound Default)
OpenAL device available: WaveOut Default (default DirectSound Default)
OpenAL device available: No Output (default DirectSound Default)
NO SELFEXE: bootstrapping from CWD
Booting T-Engine from: E:\Applications\angbands\t-engine4-windows-1.0.0beta29\t-engine.exe
SelfExe gave us app directory of: E:\Applications\angbands\t-engine4-windows-1.0.0beta29\
Lua Error: /loader/pre-init.lua:23: JIT compiler disabled, CPU does not support SSE2
At [C]:-1
At [C]:-1 on
At /loader/pre-init.lua:23
Creating particles thread 0
Lua Error: /loader/pre-init.lua:23: JIT compiler disabled, CPU does not support SSE2
At [C]:-1
At [C]:-1 on
At /loader/pre-init.lua:23
OpenGL max texture size: 4096
OpenGL max texture size: 4096
Running lua loader code...
Reboot using te4 LATEST boot player false
[ENGINE LOADER] available from dir: te4-0.9.29
Lua Error: /loader/init.lua:81: attempt to call field 'serialize' (a nil value)
At [C]:-1 serialize
At /loader/init.lua:81 load
At /loader/init.lua:132
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Thu Jul 14, 2011 11:15 pm
by darkgod
Ewww .. CPUs taht cant do SSE2 ... that cant still exists !! :/
Ok I'll make a release with it disabled for really old cpus :/
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Fri Jul 15, 2011 3:38 am
by Chryana
That's really nice of you... Thank you very much. I'll start looking for a new computer... Maybe I can find one if I look hard enough on garbage collection day.

Since no one else has reported any issue, I'll try to compile it to avoid wasting your time just to please one person.
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Fri Jul 15, 2011 5:43 am
by Chryana
I managed to compile it, but my build gives the same error messages.

In premake4.lua, I set in the build options for the debug build "-mno-sse2", but it makes no change to the te4_log file, although the executable size changed slightly. I must be doing something wrong...
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Fri Jul 15, 2011 8:05 am
by darkgod
Compile it using the premake flag like that:
premake4 --lua=default gmake
That should work
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Fri Jul 15, 2011 10:31 am
by Chryana
That option really slimmed down the size of the executable! And it works! Thank you.
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Fri Jul 15, 2011 10:39 am
by darkgod
Cool

I'll add a no-sse2 executable to the new betas then
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Sat Jul 16, 2011 10:56 am
by darkgod
Can you change the line 23 in game/loader/pre-init.lua from
to
See if it works (with the executable that didnt work obviously)
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Sat Jul 16, 2011 3:00 pm
by Lord Vagrant
That works for me now.
Would be easier if the lua files had end of line characters
Re: [b29] starting te4 maxes cpu, does nothing else
Posted: Sat Jul 16, 2011 3:54 pm
by darkgod
They have

But silly windows cant tell apart correct line endings
Ok I've included a proper fix for next beta then, thanks!