GOG version of Rayman 2 comes preconfigured with nGlide.
Retail version comes preconfigured with DX6 (the same for Uplay version with wine ddraw.dll attached) and these versions usualy drops from 60 to 60 FPS, and it can be fixed by using nGlide, or using ddraw wrapper.
You can also use DX6 renderer and suitable ddraw wrapper for this game to fix FPS issues on retail version with DX6 set in ini.
Content of ubi.ini for DX6 (can be used in any game version):
[Rayman2]Choose = 1GLI_DllFile=GliDX6
GLI_Dll=DirectX6
GLI_Driver=display
GLI_Device=Direct3D HEL
GLI_Mode=1 - 1280 x 1024 x 16
(yes, Uplay has written HEL instead of HAL whoch automatically generates in ini after GXsetup change.
In case of resolution enumeration errors, see:
[url=https://pcgamingwiki.com/wiki/Rayman_2:_The_Great_Escape#.22Display_initialisation_error_problem_during_resolutions_enumeration.22_]https://pcgamingwiki.com/wiki/Rayman_2:_The_Great_Escape#.22Display_initialisation_error_problem_during_resolutions_enumeration.22_[/url]
Download:
https://github.com/elishacloud/dxwrapper/releases Copy dxwrapper.ini, dxwrapper.dll, ddraw.dll (stub directory), into Rayman 2 directory
Edit dxwrapper.ini: FullScreen = 1
Alternatively, using nGlide.
Content of ubi.ini for Glide:
[Rayman2]Choose = 1GLI_DllFile=GliVd1
GLI_Dll=Glide2
GLI_Driver=
GLI_Device=
GLI_Mode=1 - 1920 x 1080 x 16
Language=English
GLI_DllFile=GliVd1
ParticuleRate=High
Install nGlide, set resolution in nGlide configurator.