War2.ru Slogan
News: Back by popular demand, the SMF Arcade!!!
PLAY NOW!!!!!!!!!!!!!!!!!!!!!!!!


Welcome, Guest. Please login or register.

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!) 531  11

Grunt Posts: 155 Karma: +20/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 155
  • Chicken
    • View Profile
HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« on: February 27, 2021, 09:15:49 PM »
The plugin will enable a hardware cursor that responds much quicker than the normal warcraft 2 cursor. Additionally it also allows you to customize your cursor using standard windows animated cursor files.


Note: If it doesn't work properly then you might need to update your config/ddraw first, get the latest version here: https://forum.war2.ru/index.php/topic,5015.0.html


Download Here


Grunt Posts: 155 Karma: +20/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 155
  • Chicken
    • View Profile
Re: Hardware Cursor Plugin - Makes your cursor respond instantly (no more input lag)
« Reply #1 on: March 01, 2021, 04:15:06 PM »
Update:

Added fixed cursors from Lesnik
Works now with the OpenGL renderer too
Grunt Posts: 70 Karma: +5/-0 ***

8)MikulZ(8

  • Grunt
  • ***
  • Posts: 70
    • View Profile
Re: Hardware Cursor Plugin - Makes your cursor respond instantly (no more input lag)
« Reply #2 on: March 02, 2021, 06:35:17 AM »
Alright I did some testing and both GDI and OpenGL renderers are working with high fps now (144fps which is my monitors limit), and the cursor is buttery smooth!

But in order to get GDI to work I had to disable freesync. If freesync is on it feels like the game limits itself to around 60fps (fraps and msi afterburner fps monitors don't seem to work with GDI), but with OpenGL high fps works with freesync on.
Grunt Posts: 155 Karma: +20/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 155
  • Chicken
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #3 on: March 02, 2021, 05:08:36 PM »
Alright I did some testing and both GDI and OpenGL renderers are working with high fps now (144fps which is my monitors limit), and the cursor is buttery smooth!

But in order to get GDI to work I had to disable freesync. If freesync is on it feels like the game limits itself to around 60fps (fraps and msi afterburner fps monitors don't seem to work with GDI), but with OpenGL high fps works with freesync on.

Cool, thanks for testing!

I'm not exactly sure why freesync would be an issue with the GDI renderer. I did a few more changes, if you want you can try it again with freesync=on and GDI:
https://forum.war2.ru/index.php/topic,5015.0.html

But I guess it's not that important, you shouldn't actually need freesync with the GDI renderer
Grunt Posts: 70 Karma: +5/-0 ***

8)MikulZ(8

  • Grunt
  • ***
  • Posts: 70
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #4 on: March 03, 2021, 05:22:12 AM »
Alright I did some testing and both GDI and OpenGL renderers are working with high fps now (144fps which is my monitors limit), and the cursor is buttery smooth!

But in order to get GDI to work I had to disable freesync. If freesync is on it feels like the game limits itself to around 60fps (fraps and msi afterburner fps monitors don't seem to work with GDI), but with OpenGL high fps works with freesync on.

Cool, thanks for testing!

I'm not exactly sure why freesync would be an issue with the GDI renderer. I did a few more changes, if you want you can try it again with freesync=on and GDI:
https://forum.war2.ru/index.php/topic,5015.0.html

But I guess it's not that important, you shouldn't actually need freesync with the GDI renderer

Hmm this made the cursor a bit smoother, but as a side effect the game now freezes frequently. Like when I move a peon nothing happens for a second or two and then the peon just teleports where it should be.

Without freesync game works normally so it didn't affect that.

Yeah it's not important to have freesync in this game. Just have to turn it off when playing war2 and back on when playing other games so it's just a little inconvenience.
Grunt Posts: 108 Karma: +1/-0 We're smarter than you. ***

Available

  • Grunt
  • ***
  • *
  • Posts: 108
  • We're smarter than you.
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #5 on: March 03, 2021, 06:11:07 AM »
Added fixed cursors

Attached videos describes the problem of forced scaling of the cursor to 32px where it should be 35px to keep original image
(disabling autoscale can also be useful for user-defined cursors other than 32px)
Grunt Posts: 108 Karma: +1/-0 We're smarter than you. ***

Available

  • Grunt
  • ***
  • *
  • Posts: 108
  • We're smarter than you.
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #6 on: March 03, 2021, 06:13:52 AM »
sorry for the cursor5_static, old version was ok, attached

is it possible to use/detect the in-game parameter (option F9 in the picture) to quickly switch animated/static cursors?
Grunt Posts: 155 Karma: +20/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 155
  • Chicken
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #7 on: March 03, 2021, 10:28:53 AM »
Alright I did some testing and both GDI and OpenGL renderers are working with high fps now (144fps which is my monitors limit), and the cursor is buttery smooth!

But in order to get GDI to work I had to disable freesync. If freesync is on it feels like the game limits itself to around 60fps (fraps and msi afterburner fps monitors don't seem to work with GDI), but with OpenGL high fps works with freesync on.

Cool, thanks for testing!

I'm not exactly sure why freesync would be an issue with the GDI renderer. I did a few more changes, if you want you can try it again with freesync=on and GDI:
https://forum.war2.ru/index.php/topic,5015.0.html

But I guess it's not that important, you shouldn't actually need freesync with the GDI renderer

Hmm this made the cursor a bit smoother, but as a side effect the game now freezes frequently. Like when I move a peon nothing happens for a second or two and then the peon just teleports where it should be.

Without freesync game works normally so it didn't affect that.

Yeah it's not important to have freesync in this game. Just have to turn it off when playing war2 and back on when playing other games so it's just a little inconvenience.

Ah... Will have to do some more research, reverted the changes for now


Added fixed cursors

Attached videos describes the problem of forced scaling of the cursor to 32px where it should be 35px to keep original image
(disabling autoscale can also be useful for user-defined cursors other than 32px)

Fixed


sorry for the cursor5_static, old version was ok, attached

is it possible to use/detect the in-game parameter (option F9 in the picture) to quickly switch animated/static cursors?


Will have a look into this in a couple hours
Grunt Posts: 155 Karma: +20/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 155
  • Chicken
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #8 on: March 03, 2021, 12:14:09 PM »
sorry for the cursor5_static, old version was ok, attached

is it possible to use/detect the in-game parameter (option F9 in the picture) to quickly switch animated/static cursors?


Ok fixed that one too. It will now load the cursor from the "Animated" folder if "Enable Color Cycling" is enabled and the matching animated cursor file exists. If the file doesn't exist then it will just use the static version of it.
Grunt Posts: 108 Karma: +1/-0 We're smarter than you. ***

Available

  • Grunt
  • ***
  • *
  • Posts: 108
  • We're smarter than you.
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #9 on: March 03, 2021, 01:00:45 PM »
Perfect! :thumbsup:
Grunt Posts: 155 Karma: +20/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 155
  • Chicken
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #10 on: March 07, 2021, 07:43:39 PM »
Update

Can now automatically resize the cursor to match the window size + added a settings file "HardwareCursor.ini" to configure the cursor size


Also updated the ddraws/config https://forum.war2.ru/index.php/topic,5015.0.html
Peon Posts: 47 Karma: +0/-0 **

dannyldd

  • Peon
  • **
  • Posts: 47
    • View Profile
Re: HardwareCursor Plugin - Makes your cursor respond instantly (no more input lag!)
« Reply #11 on: April 06, 2021, 09:08:24 PM »
Update

Can now automatically resize the cursor to match the window size + added a settings file "HardwareCursor.ini" to configure the cursor size


Also updated the ddraws/config https://forum.war2.ru/index.php/topic,5015.0.html




I have tested up a little bit in single player campaigns your plugin and looks fantastic thus far. Even though there shouldn't be any latency there, I sort of feel it's even lower now when clicking... Are you the same author who did the war2 config program or are you just sharing it ? If it's the former, I truly congratulate and I'm very grateful with you because it has been rather useful in about 1 year since have been using it. Pretty awesome to have xbrz shader available in this game. Looks pretty outstanding. Thanks for working and sharing those awesome tools for warcraft 2 !