project-navigation
Personal tools

Author Topic: Optimization bug connected with language file  (Read 9787 times)

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Optimization bug connected with language file
« on: April 07, 2007, 10:00:08 pm »
Hi, long time i wasnt here.. decided to try a new ver of ufoai from trunk and it is looking quite good

but there are one f***en bug since first ver of ufoai,
when i tried to use my country language (russian) and looked ufopedia
fps decreased to 10-15, if you are using en translation fps is near 40-60, when you look on russian ufopedia translation fps heavy decreased to 10 or something like it
tried to delete from translation simbols like "--" "!", no effect, somehow its connected with mm font? maybe

win xp sp2
conroe 2 duo 2.1
gf7900gtx
2gb ddr2
73.81

i am not a programmer, but if you can explain me where and how to locate this error (debugging, disasembling, softice...) maybe i can find the reason of this?

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Optimization bug connected with language file
« Reply #1 on: April 08, 2007, 01:49:19 pm »
yeah... and its only happaned with russian language...(
when you will use lots of any letter from russian alphabet,
fps will heavy decrease

and i dont think somebody is interesting in fixing this =(

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Optimization bug connected with language file
« Reply #2 on: April 08, 2007, 06:27:45 pm »
ok.. its not only russian lang problem ^^
equipment menu(where you choose equipment for soldiers) have the same problem 10-15 fps and its not connected with language in this menu... memory pool?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Optimization bug connected with language file
« Reply #3 on: April 08, 2007, 09:54:59 pm »
it's not that we don't want to fix this bug - we want... but there is always much work, many bugs and way to less developers. this seams to be a problem with the utf-8 char rendering in our gl_font.c code (which is a mess at all)

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Optimization bug connected with language file
« Reply #4 on: June 16, 2007, 01:11:01 pm »
Quote
equipment menu and etc

fixed by turn off optimisation in nvidia control panel some days ago...
(ye it was this f.. nvidia driver problem)

but utf-8 bug doesnt fixed yet(slow fps with rus translation)
Mattn, maybe you will look this memory leak closer plllllz =(

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Optimization bug connected with language file
« Reply #5 on: June 16, 2007, 01:53:27 pm »
maybe try to run some profiler and let us know where the bottleneck is - that would really help to track this issue down.

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Optimization bug connected with language file
« Reply #6 on: June 16, 2007, 04:22:40 pm »
i am not a programmist, user only =(
so i really dont know how to locate memory leaks in windows
visual project is broken so i cant use this

#define CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

its some kinda of memory debugger as some peoples said on some forums for visual c++ (if i understand right)
valgrind is only for linux...

mb i should use gdb somehow..., if youll help me to find good tool and say what to do ill try to locate this bug

i have also prog BoundsChecker 6.51 but dont know how to use it...(it's the best for windows as many said)
it doesnt see source of ufoai and it needs some kinda to locate them for this prog

about dev c++ memory debuggers i didnt find anything at all

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Optimization bug connected with language file
« Reply #7 on: June 16, 2007, 05:24:02 pm »
i don't think that this is a memleak... i suppose this is only about finding the slow part of your font rendering code

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Optimization bug connected with language file
« Reply #8 on: June 17, 2007, 05:16:27 am »
maybe... i am not a programmist so dont know, mb there is a way somehow to free memory after rendering text, all constants which was used something like free(all);
mb i said something stupid because dont know c++ =)

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Re: Optimization bug connected with language file
« Reply #9 on: October 07, 2007, 04:40:31 pm »
tried last svn.. lol but its not fixed yet

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Re: Optimization bug connected with language file
« Reply #10 on: February 16, 2008, 03:53:18 pm »
hope dies last

r.i.p

p.s.
from one russian fan forum(not my post):
"We should be honest - bug is very old. But, because it mention only on utf 8 languages: russian, сzech, сhinese, thai, i has ceased to trust that this will be fixed sometime."
« Last Edit: February 16, 2008, 04:02:34 pm by noob »

Offline TroubleMaker

  • Squad Leader
  • ****
  • Posts: 114
    • View Profile
Re: Optimization bug connected with language file
« Reply #11 on: February 16, 2008, 04:26:37 pm »
The answer is in Russian. Should moderators object, then I'll translate it to English also.

Нубу.
Самое смешное, что проблема, похоже не совсем в драйвере нвидии. У меня самого ge6200 дома и на работе. Сходные процессоры. Но дома всё пучком, а на работе ТА ЖЕ САМАЯ версия (релиз 2.2) гонит дуру. Есть смысл попробовать более СТАРУЮ версию драйверов.

А вообще, нвидиа творит что-то не то - сразу после установки драйвера на w2k/server перестает нормально стартовать сервер DHCP. Я озадачил технарей из нвидии, они уже третью неделю ломают головы над диагностикой и скриншотами :)

Ты не пробовал запускать игрушку, отключив ВСЁ из автозапусков?

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Re: Optimization bug connected with language file
« Reply #12 on: February 16, 2008, 05:22:26 pm »
да много че пробовал =), у мня 1 комп к сожалению, протестить на другой конфе не могу... позырь на аг, тама соответствующая темка про уфо аи,
не только у мня эта трабла, старые дровы скорее всего непокатят, я много какие пробовал серии 4x, 6x и тд и бестолку, только тормоза лишние =) из автозапуска убирал однажды всё, не помогло. как пишут знающие люди проблема чисто в неадэкватности кода к утф8, хотя опять же хз, нужен русский проггер с похожей проблемой, чтобы смотреть код, я пару чуваков хотел сподобить этим заняться, но то некогда, то им влом)...
а какие дрова у тя дома?
вполне возможно что эта трабла только с серией жириков 6xx-7xx, либо она както завязана на винде, ее шрифтами и муи русиком для нее
зыы
все версии гонят дуру, как транк 2.3 так и все ниже до 2.0... баг так и не исправили ни в одной из них =)
« Last Edit: February 16, 2008, 05:32:10 pm by noob »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Optimization bug connected with language file
« Reply #13 on: February 16, 2008, 08:35:34 pm »
only english please

Offline noob

  • Rookie
  • ***
  • Posts: 59
  • http://tinyurl.com/68elb57 >>x-com style models<<
    • View Profile
Re: Optimization bug connected with language file
« Reply #14 on: May 05, 2008, 06:46:49 pm »
i am still hoping somebody from programmist dev team will start do this
Quote
[open] Switch over from SDL_ttf to SDL_pango to allow markups and better i18n support
so much time was gone since this topic appeared....  :)