Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: SIOUX annoyance  (Read 7107 times)

OS923

  • 512 MB
  • *****
  • Posts: 888
SIOUX annoyance
« on: December 28, 2018, 08:06:38 AM »

When I write many lines with cout << c << endl, then suddenly it waits 1 second after every line. Before CW Pro 6 this used to work like expected. What causes this?
Logged

Naiw

  • 64 MB
  • ****
  • Posts: 127
  • new to the forums
Re: SIOUX annoyance
« Reply #1 on: January 02, 2019, 09:10:10 AM »

When I write many lines with cout << c << endl, then suddenly it waits 1 second after every line. Before CW Pro 6 this used to work like expected. What causes this?

Sounds like somethings fishy with the buffering, did you try flush the cout stream manually and see if it does some difference- I believe std::endl is supposed to flush the stream but rarely used cout/cin with sioux. Alternatively you could always use printf...
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: SIOUX annoyance
« Reply #2 on: January 09, 2019, 07:41:28 AM »

Explicitly flushing doesn't make a difference.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: SIOUX annoyance
« Reply #3 on: January 18, 2019, 08:49:17 AM »

It uses GetCaretTime to choose a sleep time for WaitNextEvent. In previous versions of CW Pro the sleep time was 0.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: SIOUX annoyance
« Reply #4 on: January 22, 2019, 06:46:09 AM »

InsertSIOUXBuffer calls UserBreak which uses GetCaretTime instead of 0.
This causes also a problem with missing characters in input.
Change GetCaretTime() to 0 in UserBreak.
Then relink these libraries:
MSL SIOUX.68K.Lib
MSL SIOUX.Carbon.Lib
MSL SIOUX.CFM68K.Lib
MSL SIOUX.PPC.Lib
MSL SIOUX_WASTE.68K.Lib
MSL SIOUX_WASTE.Carbon.Lib
MSL SIOUX_WASTE.CFM68K.Lib
MSL SIOUX_WASTE.PPC.Lib
Logged
Pages: [1]   Go Up

Recent Topics

[Off Topic] What did you do with your PowerPC Mac today? by smilesdavis Yesterday at 11:10:58 AM
[Off Topic] Music Faves by jojo2k Yesterday at 07:57:27 AM
[Hardware] Powerbook for OS9 and SVP by BimmyLee August 29, 2025, 09:53:37 PM
[Hardware] MDD Freeze / J20 RAM Slot by aBc August 29, 2025, 07:41:14 PM
[Hardware] G4 MDD only boots using ADC monitor power button by smilesdavis August 29, 2025, 09:31:06 AM
[Hardware] Rev A/B iMac Freezes on Startup by keithiepoo August 28, 2025, 04:42:38 AM
[Off Topic] Power Use by torvan August 27, 2025, 11:01:40 PM
[Mac OS 9, Hacks & Upgrades] help my b+w g3 450 is haunted! upgrading from 8.6 to 9.0 fine but 9.1 ruins it by DieHard August 27, 2025, 04:50:57 PM