Devilutionx: Item "Drift" in Inventory

Created on 10 Aug 2020  路  13Comments  路  Source: diasurgical/devilutionX

Describe
When you pick up an item in the inventory, it "drifts" to the left(left,up in win10). If you pick it up multiple times without moving the cursor, eventually the item will not fall back in the slot you grabbed it from.

To Reproduce
Steps to reproduce the behavior:

  1. Hover cursor over any item in the inventory
  2. Left click with mouse.
  3. Do not move cursor.
  4. Left click again.
  5. Repeat 1-4 without moving the cursor to dramatic effect.

Expected behavior
When an item is picked up in vanilla, it jumps so that the item is centered on your cursors location when you clicked on it. It appears as though the cursor is the object that is moving, not the item, in devilutionx. This can have a direct effect on gameplay. If you are trying to get inventory items into your belt or swap items during a battle you could be hindered. It is fairly minor, but noticeable.

Additional context
Version:

  • 1.0.1

OS:

  • Kubuntu 20.04
  • Ubuntu 18.04
  • Windows 10

All 13 comments

For me it jumps just like in vanilla, I spammed the cursor for good 30 seconds, failed to reproduce
Can you record it or something?

Video

https://www.youtube.com/watch?v=XFEwH2UiOIw

This was on kubuntu 20.04. It is virtually the same on each OS I use. When I seemingly pause, it is because the item has moved to a spot that cannot be dropped to.

could you compile latest ver and try it there?

Build version: 1.0.1-8ca15061 on Ubuntu 18.04 has same issue.

is this latest? : P
can you reproduce it on latest on windows 10?

Maybe I'm not sure what you mean by "latest version". I cloned the repo, compiled it, and tested it. Do you mean compile the lastest release?

@mgpat-gm could you try this in a window where no scaling has been applied, afaik this is caused by rounding errors. If possible try providing a video of the issue.

@AJenbo It appears you are correct. I cannot reproduce this in windowed mode.

I wonder if this is an issue if you enable interger scaling?

Someone with an Nvidia Turing card, AMD Ryzen 2000 or later with integrated graphics, ATI Radeon GCN(circa 2011+) architecture, or Intel Gen 11 graphics will have to test it out. Sadly, none of my four PCs have any of those.

OIC what you mean. It could be remedied by commit #785 ?

Yes, if enabled in ini

It worked fine with the integer scaling turned on.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spitfire picture spitfire  路  22Comments

predator8bit picture predator8bit  路  22Comments

julealgon picture julealgon  路  16Comments

Chance4us picture Chance4us  路  15Comments

AJenbo picture AJenbo  路  19Comments