Page 1 of 1

character move cause lag/slowdown

Posted: 21 Feb 2016, 20:25
by marc12polo3
Hi,
every time my character moves (like every fifth step) cause lag.
The lag is about a half a second to second long. That makes playing annoying.

for information this is not caused by network at all, my maximal ping is 60ms, avg. is 40ms, no packed loss.

Thanks for any info to this

Os Ubuntu 14.04 x86 (same problem with windows client, i tested both)
manaplus 1.6.2.13

PC: Intel core i3, 4GB RAM, intel HD graphics, SDL 1.2

Re: character move cause lag/slowdown

Posted: 21 Feb 2016, 21:05
by TeZeR.D
Go to Setup --> Video. Under the resolutions, there should be a dropdown box - try changing it to an OpenGL setting if it isn't already.

Re: character move cause lag/slowdown

Posted: 22 Feb 2016, 00:19
by 4144
If you see some object was not saw before it must be loaded from disk.
By default it loaded while you moving. You can change this and will stuck while loading new object.
Also it can be related on wrong renderer selected or disabled in setting some optimizations.

Re: character move cause lag/slowdown

Posted: 22 Feb 2016, 08:31
by marc12polo3
hi i think i find where was problem, after i turned HW acceleration off, i don't get stuck.
does it mean that my graphics are not supported by game?

PC: Intel i3 , intel HD graphics (first generation)

Re: character move cause lag/slowdown

Posted: 22 Feb 2016, 17:14
by Babarabatiri
Manaplus doesn't support any graphics hardware directly, it uses OpenGL and this thing utilizes your hw.
Check if your system have OpenGL installed/configured correctly for your specific hw (by default OpenGL installation uses only software rendering). Probably you can find tons of info by googling for "ubuntu 14.04 opengl {your exact graphics hw name here}".

Re: character move cause lag/slowdown

Posted: 22 Feb 2016, 19:45
by marc12polo3
thanks, well opengl is correctly installed on my pc the glxinfo gives me this:
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 2.1 Mesa 11.2.0-devel (git-ff360a5 2016-02-22 trusty-oibaf-ppa)
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 11.2.0-devel (git-ff360a5 2016-02-22 trusty-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

And i see in manaplus settings that i can pick multiple versions of opengl, so what version would you recommend for me?

Re: character move cause lag/slowdown

Posted: 22 Feb 2016, 23:16
by 4144
You have some only for very old OpenGL version. This mean or wrong mesa configuration or very old video card.
In both cases OpenGL can be very slow for you.
With this version can work "safe opengl" and probably "normal opengl"

Re: character move cause lag/slowdown

Posted: 23 Feb 2016, 08:34
by marc12polo3
the safe opengl option looks best for me, thanks and yes my graphics are last ironlake so quite old

Re: character move cause lag/slowdown

Posted: 26 Feb 2016, 09:38
by marc12polo3
builded manaplus from source and its much better for me now im happy :)

Re: character move cause lag/slowdown

Posted: 26 Feb 2016, 12:49
by Travolta
marc12polo3 wrote:builded manaplus from source and its much better for me now im happy :)
In theory using proper CXXFLAGS while building should improve performance even more.

Re: character move cause lag/slowdown

Posted: 03 Mar 2016, 17:13
by oldphonefan
Need video settings change software mode
Intel vga grafic only work perfect ubuntu manaplus cilent software mode
.

Re: character move cause lag/slowdown

Posted: 12 Mar 2016, 23:21
by Hello=)
oldphonefan wrote:Need video settings change software mode
Intel vga grafic only work perfect ubuntu manaplus cilent software mode
Wrong. Even older Intel things can do OpenGL rendering, more or less adequately. Especially if "oibaf PPA" is enabled, this one brings up to date MESA and related parts, so when one uses Oibaf, GPU does nearly best it can do under linux at all. Oldest I've met was "gen 4", which isn't even CPU, it was part of MB chipset.

This said, Intel's hardware support isn't great overall, even newest GPUs still formally bound to OpenGL 3.3 to the date. Though they've "almost" coded OpenGL 4.3, but it only affects few newest GPU families, so unless one is really inclined on hunting for latest intel CPUs, they're out of luck. Older Intel GPUs are mostly abandoned by Intel, usually supporting OpenGL 2.1 only (+some extensions, but no GL 3.x compliance). Which isn't what I would call great hardware support. But at the end of day, it is enough for "normal" OpenGL and it usually works fine, even on old hardware. One can also try "mobile" OpenGL (OpenGL ES) rendering: Intel is inclined on this due to Android, so OpenGL ES usually performs reasonably. OpenGL ES 1 is supported on virtually anything Intel based I've met and quite many things can do GL ES 2 as well.

Re: character move cause lag/slowdown

Posted: 13 Mar 2016, 12:58
by 4144
t3st3r wrote:
oldphonefan wrote:Need video settings change software mode
Intel vga grafic only work perfect ubuntu manaplus cilent software mode
Wrong. Even older Intel things can do OpenGL rendering, more or less adequately. Especially if "oibaf PPA" is enabled, this one brings up to date MESA and related parts, so when one uses Oibaf, GPU does nearly best it can do under linux at all. Oldest I've met was "gen 4", which isn't even CPU, it was part of MB chipset.

This said, Intel's hardware support isn't great overall, even newest GPUs still formally bound to OpenGL 3.3 to the date. Though they've "almost" coded OpenGL 4.3, but it only affects few newest GPU families, so unless one is really inclined on hunting for latest intel CPUs, they're out of luck. Older Intel GPUs are mostly abandoned by Intel, usually supporting OpenGL 2.1 only (+some extensions, but no GL 3.x compliance). Which isn't what I would call great hardware support. But at the end of day, it is enough for "normal" OpenGL and it usually works fine, even on old hardware. One can also try "mobile" OpenGL (OpenGL ES) rendering: Intel is inclined on this due to Android, so OpenGL ES usually performs reasonably. OpenGL ES 1 is supported on virtually anything Intel based I've met and quite many things can do GL ES 2 as well.
Intel GPU support almost latest OpenGL like 4.4 or 4.5, missing only some extensions, because this it show 3.3 always.

Re: character move cause lag/slowdown

Posted: 16 Mar 2016, 21:08
by Hello=)
4144, OpenGL situation is quite funny, actually :)

From purely formal point of view, Intel STILL missing some few mandatory OpenGL 4.x features, therefore they are unable to declare GL 4.x compliance and driver reports 3.3 as formal version, even on latest hardware. Even though most GL 4.x extensions are done. At least for few latest gens.

To the date, from formal point of view, Radeon and Nouveau made it to OpenGL 4.1 compliance, implementing ALL features these versions of OpenGL standard require, hence formally exposing these versions. Intel still formally stuck at 3.3.

How the hell it comes to this? Actually, devs mostly stuck on FP64 thing. GL 4.x requires it, as GL 4.0 compliance part. It rarely used by games and hard to implement on some hardware. Yet it formally thwarts compliance.

But it only affects several new gens. Older gens are totally out of luck. And e.g. gen4/5 (maybe something else as well) can't declare GL 3.3 compliance, being stuck to formal 2.1 compliance, which is, uhm, LOL. There is nothing fundamental in HW preventing GL 3.3 compliance, except it can't do antialiasing in hardware. Since antialiasing is mandatory GL 3.x feature, older intels can't declare formal GL 3.x compliance. I guess those using it do not really care about antialiasing, since it too weak for high-quality pictures anyway, but...

NB: some kind guy has created https://mesamatrix.net/ to track what happens in MESA. Really fancy web site to track opensource drivers state, they even got definitive GL features table, mostly in line against of MESA GIT. So everyone can get idea where MESA happens to be right now. But it still missing details on "HW parts vs actually supported version".

Actually even GPU drivers devs exposed views GL could have been better if some obviously optional (GL 3.x vs antialiasing) or rarely used (like GL 4.x vs FP64) things aren't mandatory for compliance, but at this point it is way too late to do something about it.