character move cause lag/slowdown

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
marc12polo3
Newly Registered User
Posts: 6
Joined: 29 Jan 2016, 07:49

character move cause lag/slowdown

Post 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
TeZeR.D
TMW Adviser
TMW Adviser
Posts: 131
Joined: 05 Dec 2011, 18:26

Re: character move cause lag/slowdown

Post 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.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: character move cause lag/slowdown

Post 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.
marc12polo3
Newly Registered User
Posts: 6
Joined: 29 Jan 2016, 07:49

Re: character move cause lag/slowdown

Post 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)
Babarabatiri
Newly Registered User
Posts: 7
Joined: 18 Dec 2015, 15:47

Re: character move cause lag/slowdown

Post 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}".
marc12polo3
Newly Registered User
Posts: 6
Joined: 29 Jan 2016, 07:49

Re: character move cause lag/slowdown

Post 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?
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: character move cause lag/slowdown

Post 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"
marc12polo3
Newly Registered User
Posts: 6
Joined: 29 Jan 2016, 07:49

Re: character move cause lag/slowdown

Post by marc12polo3 »

the safe opengl option looks best for me, thanks and yes my graphics are last ironlake so quite old
marc12polo3
Newly Registered User
Posts: 6
Joined: 29 Jan 2016, 07:49

Re: character move cause lag/slowdown

Post by marc12polo3 »

builded manaplus from source and its much better for me now im happy :)
Travolta
Novice
Novice
Posts: 159
Joined: 26 Mar 2011, 04:29

Re: character move cause lag/slowdown

Post 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.
User avatar
oldphonefan
Newly Registered User
Posts: 7
Joined: 01 Jan 2015, 16:25
Location: Hungary

Re: character move cause lag/slowdown

Post by oldphonefan »

Need video settings change software mode
Intel vga grafic only work perfect ubuntu manaplus cilent software mode
.
User avatar
Hello=)
TMW Classic
TMW Classic
Posts: 648
Joined: 11 Jun 2009, 12:46

Re: character move cause lag/slowdown

Post 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.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: character move cause lag/slowdown

Post 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.
User avatar
Hello=)
TMW Classic
TMW Classic
Posts: 648
Joined: 11 Jun 2009, 12:46

Re: character move cause lag/slowdown

Post 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.
Post Reply