Jump to content

Severely degraded performance with Zerosquare engine selected.


Recommended Posts

When calling jsfGetPad() or jsfGetPadPressed() with the ZeroSquare engine selected in rapapp.s

the frame rate suffers greatly, dropping up to 5 frames at a time.


Switching to the U-235 engine in rapapp.s the problem goes away.


Steps to repeat...

Create a new C project

build test newc


Leave the Zerosquare player selected in rapapp.s

player equ 0     ;0=Zerosquare's player, 1=U-235 player ( selecting U235 may cause issues in Virtual Jaguar 2.1.2 but works on hardware )


Change basicmain() in test .c to this...

void basicmain()
	jsfSetFontIndx(1);							// Set font style
	jsfSetFontSize(1);							// Set font size

	rapLocate(130,182);							// Position the text cursor

	// Main Loop
		js_r_textbuffer=(char *)ee_printf("%2d", rapTicks);	
		rapTicks = 0;
		jsfVsync(0);								// Screen Update

	  int pad1 = jsfGetPad(LEFT_PAD);
	  pad1 = jsfGetPadPressed(LEFT_PAD);


The number printed is the number of ticks.

The code resets ticks to zero after printing it.


With the Zerosquare engine the number prints sporadically between 2 and 10.

With the U-235 engine the number prints only a '1'.

Link to comment
Share on other sites



Are you testing that in Virtual Jaguar (or another emulator) or on actual hardware?


On some computers, one sound engine or the other can sometimes perform poorly, however the exact same code will run fine on the actual Jaguar.




Link to comment
Share on other sites

11 hours ago, JagMod said:

This was in VJ.

I didn't try it on real hardware.


Not unexpected then. It'll work fine on h/w.


We will not be investing time to change working code so that emulators can run it.  That is a job for the emulator authors :D

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...